var wc=e=>{throw TypeError(e)};var cl=(e,t,n)=>t.has(e)||wc("Cannot "+n);var N=(e,t,n)=>(cl(e,t,"read from private field"),n?n.call(e):t.get(e)),q=(e,t,n)=>t.has(e)?wc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),F=(e,t,n,r)=>(cl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ce=(e,t,n)=>(cl(e,t,"access private method"),n);var gs=(e,t,n,r)=>({set _(o){F(e,t,o,n)},get _(){return N(e,t,r)}});function $g(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function jf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rf={exports:{}},Oi={},Af={exports:{}},G={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ss=Symbol.for("react.element"),Bg=Symbol.for("react.portal"),Ug=Symbol.for("react.fragment"),Vg=Symbol.for("react.strict_mode"),Hg=Symbol.for("react.profiler"),Wg=Symbol.for("react.provider"),Qg=Symbol.for("react.context"),Kg=Symbol.for("react.forward_ref"),Gg=Symbol.for("react.suspense"),Yg=Symbol.for("react.memo"),Xg=Symbol.for("react.lazy"),Sc=Symbol.iterator;function qg(e){return e===null||typeof e!="object"?null:(e=Sc&&e[Sc]||e["@@iterator"],typeof e=="function"?e:null)}var Of={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mf=Object.assign,_f={};function no(e,t,n){this.props=e,this.context=t,this.refs=_f,this.updater=n||Of}no.prototype.isReactComponent={};no.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};no.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Lf(){}Lf.prototype=no.prototype;function eu(e,t,n){this.props=e,this.context=t,this.refs=_f,this.updater=n||Of}var tu=eu.prototype=new Lf;tu.constructor=eu;Mf(tu,no.prototype);tu.isPureReactComponent=!0;var Cc=Array.isArray,If=Object.prototype.hasOwnProperty,nu={current:null},zf={key:!0,ref:!0,__self:!0,__source:!0};function Df(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)If.call(t,r)&&!zf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,D=P[H];if(0>>1;Ho(he,L))Neo(J,he)?(P[H]=J,P[Ne]=L,H=Ne):(P[H]=he,P[X]=L,H=X);else if(Neo(J,L))P[H]=J,P[Ne]=L,H=Ne;else break e}}return j}function o(P,j){var L=P.sortIndex-j.sortIndex;return L!==0?L:P.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var a=[],u=[],d=1,p=null,g=3,f=!1,C=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(P){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=P)r(u),j.sortIndex=j.expirationTime,t(a,j);else break;j=n(u)}}function w(P){if(y=!1,v(P),!C)if(n(a)!==null)C=!0,B(b);else{var j=n(u);j!==null&&V(w,j.startTime-P)}}function b(P,j){C=!1,y&&(y=!1,m(T),T=-1),f=!0;var L=g;try{for(v(j),p=n(a);p!==null&&(!(p.expirationTime>j)||P&&!$());){var H=p.callback;if(typeof H=="function"){p.callback=null,g=p.priorityLevel;var D=H(p.expirationTime<=j);j=e.unstable_now(),typeof D=="function"?p.callback=D:p===n(a)&&r(a),v(j)}else r(a);p=n(a)}if(p!==null)var K=!0;else{var X=n(u);X!==null&&V(w,X.startTime-j),K=!1}return K}finally{p=null,g=L,f=!1}}var E=!1,k=null,T=-1,_=5,O=-1;function $(){return!(e.unstable_now()-O<_)}function z(){if(k!==null){var P=e.unstable_now();O=P;var j=!0;try{j=k(!0,P)}finally{j?Q():(E=!1,k=null)}}else E=!1}var Q;if(typeof h=="function")Q=function(){h(z)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,Y=M.port2;M.port1.onmessage=z,Q=function(){Y.postMessage(null)}}else Q=function(){x(z,0)};function B(P){k=P,E||(E=!0,Q())}function V(P,j){T=x(function(){P(e.unstable_now())},j)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){C||f||(C=!0,B(b))},e.unstable_forceFrameRate=function(P){0>P||125H?(P.sortIndex=L,t(u,P),n(a)===null&&P===n(u)&&(y?(m(T),T=-1):y=!0,V(w,L-H))):(P.sortIndex=D,t(a,P),C||f||(C=!0,B(b))),P},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(P){var j=g;return function(){var L=g;g=j;try{return P.apply(this,arguments)}finally{g=L}}}})(Hf);Vf.exports=Hf;var av=Vf.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var uv=S,Ze=av;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vl=Object.prototype.hasOwnProperty,cv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ec={},kc={};function dv(e){return Vl.call(kc,e)?!0:Vl.call(Ec,e)?!1:cv.test(e)?kc[e]=!0:(Ec[e]=!0,!1)}function fv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function pv(e,t,n,r){if(t===null||typeof t>"u"||fv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ie(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new Ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new Ie(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new Ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new Ie(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ke[e]=new Ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new Ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new Ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new Ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new Ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var ou=/[\-:]([a-z])/g;function su(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ou,su);ke[t]=new Ie(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ou,su);ke[t]=new Ie(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ou,su);ke[t]=new Ie(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new Ie(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new Ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new Ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function iu(e,t,n,r){var o=ke.hasOwnProperty(t)?ke[t]:null;(o!==null?o.type!==0:r||!(2l||o[i]!==s[l]){var a=` `+o[i].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=i&&0<=l);break}}}finally{pl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?So(e):""}function hv(e){switch(e.tag){case 5:return So(e.type);case 16:return So("Lazy");case 13:return So("Suspense");case 19:return So("SuspenseList");case 0:case 2:case 15:return e=hl(e.type,!1),e;case 11:return e=hl(e.type.render,!1),e;case 1:return e=hl(e.type,!0),e;default:return""}}function Kl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yr:return"Fragment";case vr:return"Portal";case Hl:return"Profiler";case lu:return"StrictMode";case Wl:return"Suspense";case Ql:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Kf:return(e.displayName||"Context")+".Consumer";case Qf:return(e._context.displayName||"Context")+".Provider";case au:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case uu:return t=e.displayName||null,t!==null?t:Kl(e.type)||"Memo";case un:t=e._payload,e=e._init;try{return Kl(e(t))}catch{}}return null}function mv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Kl(t);case 8:return t===lu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gv(e){var t=Yf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xs(e){e._valueTracker||(e._valueTracker=gv(e))}function Xf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ti(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Gl(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function qf(e,t){t=t.checked,t!=null&&iu(e,"checked",t,!1)}function Yl(e,t){qf(e,t);var n=Rn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xl(e,t.type,Rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Xl(e,t,n){(t!=="number"||ti(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Co=Array.isArray;function jr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ws.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Io(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ko={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},vv=["Webkit","ms","Moz","O"];Object.keys(ko).forEach(function(e){vv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ko[t]=ko[e]})});function tp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ko.hasOwnProperty(e)&&ko[e]?(""+t).trim():t+"px"}function np(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=tp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var yv=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Jl(e,t){if(t){if(yv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function ea(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ta=null;function cu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var na=null,Rr=null,Ar=null;function Ac(e){if(e=as(e)){if(typeof na!="function")throw Error(R(280));var t=e.stateNode;t&&(t=zi(t),na(e.stateNode,e.type,t))}}function rp(e){Rr?Ar?Ar.push(e):Ar=[e]:Rr=e}function op(){if(Rr){var e=Rr,t=Ar;if(Ar=Rr=null,Ac(e),t)for(e=0;e>>=0,e===0?32:31-(jv(e)/Rv|0)|0}var Ss=64,Cs=4194304;function bo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function si(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=bo(l):(s&=i,s!==0&&(r=bo(s)))}else i=n&~o,i!==0?r=bo(i):s!==0&&(r=bo(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function is(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function _v(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Po),$c=" ",Bc=!1;function Ep(e,t){switch(e){case"keyup":return ay.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xr=!1;function cy(e,t){switch(e){case"compositionend":return kp(t);case"keypress":return t.which!==32?null:(Bc=!0,$c);case"textInput":return e=t.data,e===$c&&Bc?null:e;default:return null}}function dy(e,t){if(xr)return e==="compositionend"||!yu&&Ep(e,t)?(e=Cp(),Us=mu=xn=null,xr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Wc(n)}}function jp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rp(){for(var e=window,t=ti();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ti(e.document)}return t}function xu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function wy(e){var t=Rp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jp(n.ownerDocument.documentElement,n)){if(r!==null&&xu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=Qc(n,s);var i=Qc(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,wr=null,aa=null,jo=null,ua=!1;function Kc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ua||wr==null||wr!==ti(r)||(r=wr,"selectionStart"in r&&xu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jo&&Uo(jo,r)||(jo=r,r=ai(aa,"onSelect"),0br||(e.current=ma[br],ma[br]=null,br--)}function ne(e,t){br++,ma[br]=e.current,e.current=t}var An={},Ae=zn(An),$e=zn(!1),tr=An;function Gr(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Be(e){return e=e.childContextTypes,e!=null}function ci(){se($e),se(Ae)}function ed(e,t,n){if(Ae.current!==An)throw Error(R(168));ne(Ae,t),ne($e,n)}function Fp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,mv(e)||"Unknown",o));return ce({},n,r)}function di(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,tr=Ae.current,ne(Ae,e),ne($e,$e.current),!0}function td(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Fp(e,t,tr),r.__reactInternalMemoizedMergedChildContext=e,se($e),se(Ae),ne(Ae,e)):se($e),ne($e,n)}var $t=null,Di=!1,Tl=!1;function $p(e){$t===null?$t=[e]:$t.push(e)}function Oy(e){Di=!0,$p(e)}function Dn(){if(!Tl&&$t!==null){Tl=!0;var e=0,t=ee;try{var n=$t;for(ee=1;e>=i,o-=i,Ut=1<<32-xt(t)+o|n<T?(_=k,k=null):_=k.sibling;var O=g(m,k,v[T],w);if(O===null){k===null&&(k=_);break}e&&k&&O.alternate===null&&t(m,k),h=s(O,h,T),E===null?b=O:E.sibling=O,E=O,k=_}if(T===v.length)return n(m,k),le&&Un(m,T),b;if(k===null){for(;TT?(_=k,k=null):_=k.sibling;var $=g(m,k,O.value,w);if($===null){k===null&&(k=_);break}e&&k&&$.alternate===null&&t(m,k),h=s($,h,T),E===null?b=$:E.sibling=$,E=$,k=_}if(O.done)return n(m,k),le&&Un(m,T),b;if(k===null){for(;!O.done;T++,O=v.next())O=p(m,O.value,w),O!==null&&(h=s(O,h,T),E===null?b=O:E.sibling=O,E=O);return le&&Un(m,T),b}for(k=r(m,k);!O.done;T++,O=v.next())O=f(k,m,T,O.value,w),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?T:O.key),h=s(O,h,T),E===null?b=O:E.sibling=O,E=O);return e&&k.forEach(function(z){return t(m,z)}),le&&Un(m,T),b}function x(m,h,v,w){if(typeof v=="object"&&v!==null&&v.type===yr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ys:e:{for(var b=v.key,E=h;E!==null;){if(E.key===b){if(b=v.type,b===yr){if(E.tag===7){n(m,E.sibling),h=o(E,v.props.children),h.return=m,m=h;break e}}else if(E.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===un&&od(b)===E.type){n(m,E.sibling),h=o(E,v.props),h.ref=go(m,E,v),h.return=m,m=h;break e}n(m,E);break}else t(m,E);E=E.sibling}v.type===yr?(h=er(v.props.children,m.mode,w,v.key),h.return=m,m=h):(w=Xs(v.type,v.key,v.props,null,m.mode,w),w.ref=go(m,h,v),w.return=m,m=w)}return i(m);case vr:e:{for(E=v.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(m,h.sibling),h=o(h,v.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=Il(v,m.mode,w),h.return=m,m=h}return i(m);case un:return E=v._init,x(m,h,E(v._payload),w)}if(Co(v))return C(m,h,v,w);if(co(v))return y(m,h,v,w);js(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,v),h.return=m,m=h):(n(m,h),h=Ll(v,m.mode,w),h.return=m,m=h),i(m)):n(m,h)}return x}var Xr=Hp(!0),Wp=Hp(!1),hi=zn(null),mi=null,Nr=null,bu=null;function Eu(){bu=Nr=mi=null}function ku(e){var t=hi.current;se(hi),e._currentValue=t}function ya(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Mr(e,t){mi=e,bu=Nr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Fe=!0),e.firstContext=null)}function lt(e){var t=e._currentValue;if(bu!==e)if(e={context:e,memoizedValue:t,next:null},Nr===null){if(mi===null)throw Error(R(308));Nr=e,mi.dependencies={lanes:0,firstContext:e}}else Nr=Nr.next=e;return t}var Wn=null;function Nu(e){Wn===null?Wn=[e]:Wn.push(e)}function Qp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Nu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Kt(e,r)}function Kt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var cn=!1;function Pu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Kp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ht(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Z&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Kt(e,n)}return o=r.interleaved,o===null?(t.next=t,Nu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Kt(e,n)}function Hs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fu(e,n)}}function sd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function gi(e,t,n,r){var o=e.updateQueue;cn=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,i===null?s=u:i.next=u,i=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==i&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=a))}if(s!==null){var p=o.baseState;i=0,d=u=a=null,l=s;do{var g=l.lane,f=l.eventTime;if((r&g)===g){d!==null&&(d=d.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var C=e,y=l;switch(g=t,f=n,y.tag){case 1:if(C=y.payload,typeof C=="function"){p=C.call(f,p,g);break e}p=C;break e;case 3:C.flags=C.flags&-65537|128;case 0:if(C=y.payload,g=typeof C=="function"?C.call(f,p,g):C,g==null)break e;p=ce({},p,g);break e;case 2:cn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[l]:g.push(l))}else f={eventTime:f,lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=f,a=p):d=d.next=f,i|=g;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;g=l,l=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(d===null&&(a=p),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);or|=i,e.lanes=i,e.memoizedState=p}}function id(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Rl.transition;Rl.transition={};try{e(!1),t()}finally{ee=n,Rl.transition=r}}function ch(){return at().memoizedState}function Iy(e,t,n){var r=Tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},dh(e))fh(t,n);else if(n=Qp(e,t,n,r),n!==null){var o=_e();wt(n,e,r,o),ph(n,t,r)}}function zy(e,t,n){var r=Tn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(dh(e))fh(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,l=s(i,n);if(o.hasEagerState=!0,o.eagerState=l,St(l,i)){var a=t.interleaved;a===null?(o.next=o,Nu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Qp(e,t,o,r),n!==null&&(o=_e(),wt(n,e,r,o),ph(n,t,r))}}function dh(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function fh(e,t){Ro=yi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ph(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fu(e,n)}}var xi={readContext:lt,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useInsertionEffect:Pe,useLayoutEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useMutableSource:Pe,useSyncExternalStore:Pe,useId:Pe,unstable_isNewReconciler:!1},Dy={readContext:lt,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:ad,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qs(4194308,4,sh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qs(4,2,e,t)},useMemo:function(e,t){var n=Nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Nt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Iy.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:ld,useDebugValue:Lu,useDeferredValue:function(e){return Nt().memoizedState=e},useTransition:function(){var e=ld(!1),t=e[0];return e=Ly.bind(null,e[1]),Nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,o=Nt();if(le){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Se===null)throw Error(R(349));rr&30||qp(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,ad(Jp.bind(null,r,s,e),[e]),r.flags|=2048,Xo(9,Zp.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Nt(),t=Se.identifierPrefix;if(le){var n=Vt,r=Ut;n=(r&~(1<<32-xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Go++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Rt]=t,e[Wo]=r,bh(e,t,!1,!1),t.stateNode=e;e:{switch(i=ea(n,r),n){case"dialog":oe("cancel",e),oe("close",e),o=r;break;case"iframe":case"object":case"embed":oe("load",e),o=r;break;case"video":case"audio":for(o=0;oJr&&(t.flags|=128,r=!0,vo(s,!1),t.lanes=4194304)}else{if(!r)if(e=vi(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!le)return Te(t),null}else 2*pe()-s.renderingStartTime>Jr&&n!==1073741824&&(t.flags|=128,r=!0,vo(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=pe(),t.sibling=null,n=ae.current,ne(ae,r?n&1|2:n&1),t):(Te(t),null);case 22:case 23:return Bu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qe&1073741824&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function Qy(e,t){switch(Su(t),t.tag){case 1:return Be(t.type)&&ci(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qr(),se($e),se(Ae),Ru(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ju(t),null;case 13:if(se(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(ae),null;case 4:return qr(),null;case 10:return ku(t.type._context),null;case 22:case 23:return Bu(),null;case 24:return null;default:return null}}var As=!1,Re=!1,Ky=typeof WeakSet=="function"?WeakSet:Set,I=null;function Pr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Pa(e,t,n){try{n()}catch(r){fe(e,t,r)}}var xd=!1;function Gy(e,t){if(ca=ii,e=Rp(),xu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,l=-1,a=-1,u=0,d=0,p=e,g=null;t:for(;;){for(var f;p!==n||o!==0&&p.nodeType!==3||(l=i+o),p!==s||r!==0&&p.nodeType!==3||(a=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(f=p.firstChild)!==null;)g=p,p=f;for(;;){if(p===e)break t;if(g===n&&++u===o&&(l=i),g===s&&++d===r&&(a=i),(f=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=f}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(da={focusedElem:e,selectionRange:n},ii=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var C=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(C!==null){var y=C.memoizedProps,x=C.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:ht(t.type,y),x);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(w){fe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return C=xd,xd=!1,C}function Ao(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Pa(t,n,s)}o=o.next}while(o!==r)}}function Bi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ta(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Nh(e){var t=e.alternate;t!==null&&(e.alternate=null,Nh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[Wo],delete t[ha],delete t[Ry],delete t[Ay])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ph(e){return e.tag===5||e.tag===3||e.tag===4}function wd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ph(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ja(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ui));else if(r!==4&&(e=e.child,e!==null))for(ja(e,t,n),e=e.sibling;e!==null;)ja(e,t,n),e=e.sibling}function Ra(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ra(e,t,n),e=e.sibling;e!==null;)Ra(e,t,n),e=e.sibling}var be=null,vt=!1;function on(e,t,n){for(n=n.child;n!==null;)Th(e,t,n),n=n.sibling}function Th(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(Mi,n)}catch{}switch(n.tag){case 5:Re||Pr(n,t);case 6:var r=be,o=vt;be=null,on(e,t,n),be=r,vt=o,be!==null&&(vt?(e=be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):be.removeChild(n.stateNode));break;case 18:be!==null&&(vt?(e=be,n=n.stateNode,e.nodeType===8?Pl(e.parentNode,n):e.nodeType===1&&Pl(e,n),$o(e)):Pl(be,n.stateNode));break;case 4:r=be,o=vt,be=n.stateNode.containerInfo,vt=!0,on(e,t,n),be=r,vt=o;break;case 0:case 11:case 14:case 15:if(!Re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Pa(n,t,i),o=o.next}while(o!==r)}on(e,t,n);break;case 1:if(!Re&&(Pr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){fe(n,t,l)}on(e,t,n);break;case 21:on(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,on(e,t,n),Re=r):on(e,t,n);break;default:on(e,t,n)}}function Sd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ky),t.forEach(function(r){var o=r0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ft(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~s}if(r=o,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xy(r/1960))-r,10e?16:e,wn===null)var r=!1;else{if(e=wn,wn=null,Ci=0,Z&6)throw Error(R(331));var o=Z;for(Z|=4,I=e.current;I!==null;){var s=I,i=s.child;if(I.flags&16){var l=s.deletions;if(l!==null){for(var a=0;ape()-Fu?Jn(e,0):Du|=n),Ue(e,t)}function Ih(e,t){t===0&&(e.mode&1?(t=Cs,Cs<<=1,!(Cs&130023424)&&(Cs=4194304)):t=1);var n=_e();e=Kt(e,t),e!==null&&(is(e,t,n),Ue(e,n))}function n0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ih(e,n)}function r0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Ih(e,n)}var zh;zh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$e.current)Fe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Fe=!1,Hy(e,t,n);Fe=!!(e.flags&131072)}else Fe=!1,le&&t.flags&1048576&&Bp(t,pi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ks(e,t),e=t.pendingProps;var o=Gr(t,Ae.current);Mr(t,n),o=Ou(null,t,r,e,o,n);var s=Mu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Be(r)?(s=!0,di(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Pu(t),o.updater=$i,t.stateNode=o,o._reactInternals=t,wa(t,r,e,n),t=ba(null,t,r,!0,s,n)):(t.tag=0,le&&s&&wu(t),Oe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ks(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=s0(r),e=ht(r,e),o){case 0:t=Ca(null,t,r,e,n);break e;case 1:t=gd(null,t,r,e,n);break e;case 11:t=hd(null,t,r,e,n);break e;case 14:t=md(null,t,r,ht(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Ca(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),gd(e,t,r,o,n);case 3:e:{if(wh(t),e===null)throw Error(R(387));r=t.pendingProps,s=t.memoizedState,o=s.element,Kp(e,t),gi(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Zr(Error(R(423)),t),t=vd(e,t,r,n,o);break e}else if(r!==o){o=Zr(Error(R(424)),t),t=vd(e,t,r,n,o);break e}else for(Ye=kn(t.stateNode.containerInfo.firstChild),Xe=t,le=!0,yt=null,n=Wp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yr(),r===o){t=Gt(e,t,n);break e}Oe(e,t,r,n)}t=t.child}return t;case 5:return Gp(t),e===null&&va(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,fa(r,o)?i=null:s!==null&&fa(r,s)&&(t.flags|=32),xh(e,t),Oe(e,t,i,n),t.child;case 6:return e===null&&va(t),null;case 13:return Sh(e,t,n);case 4:return Tu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xr(t,null,r,n):Oe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),hd(e,t,r,o,n);case 7:return Oe(e,t,t.pendingProps,n),t.child;case 8:return Oe(e,t,t.pendingProps.children,n),t.child;case 12:return Oe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,ne(hi,r._currentValue),r._currentValue=i,s!==null)if(St(s.value,i)){if(s.children===o.children&&!$e.current){t=Gt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){i=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=Ht(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ya(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(R(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),ya(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Oe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Mr(t,n),o=lt(o),r=r(o),t.flags|=1,Oe(e,t,r,n),t.child;case 14:return r=t.type,o=ht(r,t.pendingProps),o=ht(r.type,o),md(e,t,r,o,n);case 15:return vh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Ks(e,t),t.tag=1,Be(r)?(e=!0,di(t)):e=!1,Mr(t,n),hh(t,r,o),wa(t,r,o,n),ba(null,t,r,!0,e,n);case 19:return Ch(e,t,n);case 22:return yh(e,t,n)}throw Error(R(156,t.tag))};function Dh(e,t){return dp(e,t)}function o0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function st(e,t,n,r){return new o0(e,t,n,r)}function Vu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function s0(e){if(typeof e=="function")return Vu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===au)return 11;if(e===uu)return 14}return 2}function jn(e,t){var n=e.alternate;return n===null?(n=st(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xs(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Vu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case yr:return er(n.children,o,s,t);case lu:i=8,o|=8;break;case Hl:return e=st(12,n,t,o|2),e.elementType=Hl,e.lanes=s,e;case Wl:return e=st(13,n,t,o),e.elementType=Wl,e.lanes=s,e;case Ql:return e=st(19,n,t,o),e.elementType=Ql,e.lanes=s,e;case Gf:return Vi(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qf:i=10;break e;case Kf:i=9;break e;case au:i=11;break e;case uu:i=14;break e;case un:i=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=st(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function er(e,t,n,r){return e=st(7,e,r,t),e.lanes=n,e}function Vi(e,t,n,r){return e=st(22,e,r,t),e.elementType=Gf,e.lanes=n,e.stateNode={isHidden:!1},e}function Ll(e,t,n){return e=st(6,e,null,t),e.lanes=n,e}function Il(e,t,n){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function i0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gl(0),this.expirationTimes=gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hu(e,t,n,r,o,s,i,l,a){return e=new i0(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=st(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pu(s),e}function l0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Uh)}catch(e){console.error(e)}}Uh(),Uf.exports=Je;var cs=Uf.exports;const Vh=jf(cs);var Hh,jd=cs;Hh=jd.createRoot,jd.hydrateRoot;const f0=1,p0=1e6;let zl=0;function h0(){return zl=(zl+1)%Number.MAX_SAFE_INTEGER,zl.toString()}const Dl=new Map,Rd=e=>{if(Dl.has(e))return;const t=setTimeout(()=>{Dl.delete(e),_o({type:"REMOVE_TOAST",toastId:e})},p0);Dl.set(e,t)},m0=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,f0)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Rd(n):e.toasts.forEach(r=>{Rd(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},qs=[];let Zs={toasts:[]};function _o(e){Zs=m0(Zs,e),qs.forEach(t=>{t(Zs)})}function g0({...e}){const t=h0(),n=o=>_o({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>_o({type:"DISMISS_TOAST",toastId:t});return _o({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function v0(){const[e,t]=S.useState(Zs);return S.useEffect(()=>(qs.push(t),()=>{const n=qs.indexOf(t);n>-1&&qs.splice(n,1)}),[e]),{...e,toast:g0,dismiss:n=>_o({type:"DISMISS_TOAST",toastId:n})}}function ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Ad(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Wh(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Ad(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o{var m;const{scope:g,children:f,...C}=p,y=((m=g==null?void 0:g[e])==null?void 0:m[a])||l,x=S.useMemo(()=>C,Object.values(C));return c.jsx(y.Provider,{value:x,children:f})};u.displayName=s+"Provider";function d(p,g){var y;const f=((y=g==null?void 0:g[e])==null?void 0:y[a])||l,C=S.useContext(f);if(C)return C;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(i=>S.createContext(i));return function(l){const a=(l==null?void 0:l[e])||s;return S.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,y0(o,...t)]}function y0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((l,{useScope:a,scopeName:u})=>{const p=a(s)[`__scope${u}`];return{...l,...p}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function La(e){const t=x0(e),n=S.forwardRef((r,o)=>{const{children:s,...i}=r,l=S.Children.toArray(s),a=l.find(S0);if(a){const u=a.props.children,d=l.map(p=>p===a?S.Children.count(u)>1?S.Children.only(null):S.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...i,ref:o,children:S.isValidElement(u)?S.cloneElement(u,void 0,d):null})}return c.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function x0(e){const t=S.forwardRef((n,r)=>{const{children:o,...s}=n;if(S.isValidElement(o)){const i=b0(o),l=C0(s,o.props);return o.type!==S.Fragment&&(l.ref=r?Wh(r,i):i),S.cloneElement(o,l)}return S.Children.count(o)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qh=Symbol("radix.slottable");function w0(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Qh,t}function S0(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qh}function C0(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const a=s(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function b0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function E0(e){const t=e+"CollectionProvider",[n,r]=Gi(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=y=>{const{scope:x,children:m}=y,h=A.useRef(null),v=A.useRef(new Map).current;return c.jsx(o,{scope:x,itemMap:v,collectionRef:h,children:m})};i.displayName=t;const l=e+"CollectionSlot",a=La(l),u=A.forwardRef((y,x)=>{const{scope:m,children:h}=y,v=s(l,m),w=Ct(x,v.collectionRef);return c.jsx(a,{ref:w,children:h})});u.displayName=l;const d=e+"CollectionItemSlot",p="data-radix-collection-item",g=La(d),f=A.forwardRef((y,x)=>{const{scope:m,children:h,...v}=y,w=A.useRef(null),b=Ct(x,w),E=s(d,m);return A.useEffect(()=>(E.itemMap.set(w,{ref:w,...v}),()=>void E.itemMap.delete(w))),c.jsx(g,{[p]:"",ref:b,children:h})});f.displayName=d;function C(y){const x=s(e+"CollectionConsumer",y);return A.useCallback(()=>{const h=x.collectionRef.current;if(!h)return[];const v=Array.from(h.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort((E,k)=>v.indexOf(E.ref.current)-v.indexOf(k.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:u,ItemSlot:f},C,r]}var k0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],He=k0.reduce((e,t)=>{const n=La(`Primitive.${t}`),r=S.forwardRef((o,s)=>{const{asChild:i,...l}=o,a=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(a,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Kh(e,t){e&&cs.flushSync(()=>e.dispatchEvent(t))}function On(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function N0(e,t=globalThis==null?void 0:globalThis.document){const n=On(e);S.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var P0="DismissableLayer",Ia="dismissableLayer.update",T0="dismissableLayer.pointerDownOutside",j0="dismissableLayer.focusOutside",Od,Gh=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Gu=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...a}=e,u=S.useContext(Gh),[d,p]=S.useState(null),g=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=S.useState({}),C=Ct(t,k=>p(k)),y=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=y.indexOf(x),h=d?y.indexOf(d):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,w=h>=m,b=A0(k=>{const T=k.target,_=[...u.branches].some(O=>O.contains(T));!w||_||(o==null||o(k),i==null||i(k),k.defaultPrevented||l==null||l())},g),E=O0(k=>{const T=k.target;[...u.branches].some(O=>O.contains(T))||(s==null||s(k),i==null||i(k),k.defaultPrevented||l==null||l())},g);return N0(k=>{h===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},g),S.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Od=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Md(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Od)}},[d,g,n,u]),S.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Md())},[d,u]),S.useEffect(()=>{const k=()=>f({});return document.addEventListener(Ia,k),()=>document.removeEventListener(Ia,k)},[]),c.jsx(He.div,{...a,ref:C,style:{pointerEvents:v?w?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,b.onPointerDownCapture)})});Gu.displayName=P0;var R0="DismissableLayerBranch",Yh=S.forwardRef((e,t)=>{const n=S.useContext(Gh),r=S.useRef(null),o=Ct(t,r);return S.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(He.div,{...e,ref:o})});Yh.displayName=R0;function A0(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let a=function(){Xh(T0,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function O0(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=S.useRef(!1);return S.useEffect(()=>{const o=s=>{s.target&&!r.current&&Xh(j0,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Md(){const e=new CustomEvent(Ia);document.dispatchEvent(e)}function Xh(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Kh(o,s):o.dispatchEvent(s)}var M0=Gu,_0=Yh,Mn=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},L0="Portal",qh=S.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,s]=S.useState(!1);Mn(()=>s(!0),[]);const i=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?Vh.createPortal(c.jsx(He.div,{...r,ref:t}),i):null});qh.displayName=L0;function I0(e,t){return S.useReducer((n,r)=>t[n][r]??n,e)}var Yu=e=>{const{present:t,children:n}=e,r=z0(t),o=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),s=Ct(r.ref,D0(o));return typeof n=="function"||r.isPresent?S.cloneElement(o,{ref:s}):null};Yu.displayName="Presence";function z0(e){const[t,n]=S.useState(),r=S.useRef(null),o=S.useRef(e),s=S.useRef("none"),i=e?"mounted":"unmounted",[l,a]=I0(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const u=_s(r.current);s.current=l==="mounted"?u:"none"},[l]),Mn(()=>{const u=r.current,d=o.current;if(d!==e){const g=s.current,f=_s(u);e?a("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&g!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Mn(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=f=>{const y=_s(r.current).includes(f.animationName);if(f.target===t&&y&&(a("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},g=f=>{f.target===t&&(s.current=_s(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:S.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function _s(e){return(e==null?void 0:e.animationName)||"none"}function D0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var F0=$f[" useInsertionEffect ".trim().toString()]||Mn;function $0({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=B0({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const d=S.useRef(e!==void 0);S.useEffect(()=>{const p=d.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const u=S.useCallback(d=>{var p;if(l){const g=U0(d)?d(e):d;g!==e&&((p=i.current)==null||p.call(i,g))}else s(d)},[l,e,s,i]);return[a,u]}function B0({defaultProp:e,onChange:t}){const[n,r]=S.useState(e),o=S.useRef(n),s=S.useRef(t);return F0(()=>{s.current=t},[t]),S.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function U0(e){return typeof e=="function"}var V0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),H0="VisuallyHidden",Yi=S.forwardRef((e,t)=>c.jsx(He.span,{...e,ref:t,style:{...V0,...e.style}}));Yi.displayName=H0;var W0=Yi,Xu="ToastProvider",[qu,Q0,K0]=E0("Toast"),[Zh,uC]=Gi("Toast",[K0]),[G0,Xi]=Zh(Xu),Jh=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[l,a]=S.useState(null),[u,d]=S.useState(0),p=S.useRef(!1),g=S.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Xu}\`. Expected non-empty \`string\`.`),c.jsx(qu.Provider,{scope:t,children:c.jsx(G0,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:S.useCallback(()=>d(f=>f+1),[]),onToastRemove:S.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:g,children:i})})};Jh.displayName=Xu;var em="ToastViewport",Y0=["F8"],za="toast.viewportPause",Da="toast.viewportResume",tm=S.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Y0,label:o="Notifications ({hotkey})",...s}=e,i=Xi(em,n),l=Q0(n),a=S.useRef(null),u=S.useRef(null),d=S.useRef(null),p=S.useRef(null),g=Ct(t,p,i.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=i.toastCount>0;S.useEffect(()=>{const x=m=>{var v;r.length!==0&&r.every(w=>m[w]||m.code===w)&&((v=p.current)==null||v.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),S.useEffect(()=>{const x=a.current,m=p.current;if(C&&x&&m){const h=()=>{if(!i.isClosePausedRef.current){const E=new CustomEvent(za);m.dispatchEvent(E),i.isClosePausedRef.current=!0}},v=()=>{if(i.isClosePausedRef.current){const E=new CustomEvent(Da);m.dispatchEvent(E),i.isClosePausedRef.current=!1}},w=E=>{!x.contains(E.relatedTarget)&&v()},b=()=>{x.contains(document.activeElement)||v()};return x.addEventListener("focusin",h),x.addEventListener("focusout",w),x.addEventListener("pointermove",h),x.addEventListener("pointerleave",b),window.addEventListener("blur",h),window.addEventListener("focus",v),()=>{x.removeEventListener("focusin",h),x.removeEventListener("focusout",w),x.removeEventListener("pointermove",h),x.removeEventListener("pointerleave",b),window.removeEventListener("blur",h),window.removeEventListener("focus",v)}}},[C,i.isClosePausedRef]);const y=S.useCallback(({tabbingDirection:x})=>{const h=l().map(v=>{const w=v.ref.current,b=[w,...ax(w)];return x==="forwards"?b:b.reverse()});return(x==="forwards"?h.reverse():h).flat()},[l]);return S.useEffect(()=>{const x=p.current;if(x){const m=h=>{var b,E,k;const v=h.altKey||h.ctrlKey||h.metaKey;if(h.key==="Tab"&&!v){const T=document.activeElement,_=h.shiftKey;if(h.target===x&&_){(b=u.current)==null||b.focus();return}const z=y({tabbingDirection:_?"backwards":"forwards"}),Q=z.findIndex(M=>M===T);Fl(z.slice(Q+1))?h.preventDefault():_?(E=u.current)==null||E.focus():(k=d.current)==null||k.focus()}};return x.addEventListener("keydown",m),()=>x.removeEventListener("keydown",m)}},[l,y]),c.jsxs(_0,{ref:a,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:C?void 0:"none"},children:[C&&c.jsx(Fa,{ref:u,onFocusFromOutsideViewport:()=>{const x=y({tabbingDirection:"forwards"});Fl(x)}}),c.jsx(qu.Slot,{scope:n,children:c.jsx(He.ol,{tabIndex:-1,...s,ref:g})}),C&&c.jsx(Fa,{ref:d,onFocusFromOutsideViewport:()=>{const x=y({tabbingDirection:"backwards"});Fl(x)}})]})});tm.displayName=em;var nm="ToastFocusProxy",Fa=S.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=Xi(nm,n);return c.jsx(Yi,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const l=i.relatedTarget;!((u=s.viewport)!=null&&u.contains(l))&&r()}})});Fa.displayName=nm;var ds="Toast",X0="toast.swipeStart",q0="toast.swipeMove",Z0="toast.swipeCancel",J0="toast.swipeEnd",rm=S.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[l,a]=$0({prop:r,defaultProp:o??!0,onChange:s,caller:ds});return c.jsx(Yu,{present:n||l,children:c.jsx(nx,{open:l,...i,ref:t,onClose:()=>a(!1),onPause:On(e.onPause),onResume:On(e.onResume),onSwipeStart:ve(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ve(e.onSwipeMove,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:ve(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ve(e.onSwipeEnd,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),a(!1)})})})});rm.displayName=ds;var[ex,tx]=Zh(ds,{onClose(){}}),nx=S.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:l,onPause:a,onResume:u,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:g,onSwipeEnd:f,...C}=e,y=Xi(ds,n),[x,m]=S.useState(null),h=Ct(t,M=>m(M)),v=S.useRef(null),w=S.useRef(null),b=o||y.duration,E=S.useRef(0),k=S.useRef(b),T=S.useRef(0),{onToastAdd:_,onToastRemove:O}=y,$=On(()=>{var Y;(x==null?void 0:x.contains(document.activeElement))&&((Y=y.viewport)==null||Y.focus()),i()}),z=S.useCallback(M=>{!M||M===1/0||(window.clearTimeout(T.current),E.current=new Date().getTime(),T.current=window.setTimeout($,M))},[$]);S.useEffect(()=>{const M=y.viewport;if(M){const Y=()=>{z(k.current),u==null||u()},B=()=>{const V=new Date().getTime()-E.current;k.current=k.current-V,window.clearTimeout(T.current),a==null||a()};return M.addEventListener(za,B),M.addEventListener(Da,Y),()=>{M.removeEventListener(za,B),M.removeEventListener(Da,Y)}}},[y.viewport,b,a,u,z]),S.useEffect(()=>{s&&!y.isClosePausedRef.current&&z(b)},[s,b,y.isClosePausedRef,z]),S.useEffect(()=>(_(),()=>O()),[_,O]);const Q=S.useMemo(()=>x?cm(x):null,[x]);return y.viewport?c.jsxs(c.Fragment,{children:[Q&&c.jsx(rx,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Q}),c.jsx(ex,{scope:n,onClose:$,children:cs.createPortal(c.jsx(qu.ItemSlot,{scope:n,children:c.jsx(M0,{asChild:!0,onEscapeKeyDown:ve(l,()=>{y.isFocusedToastEscapeKeyDownRef.current||$(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(He.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":y.swipeDirection,...C,ref:h,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ve(e.onKeyDown,M=>{M.key==="Escape"&&(l==null||l(M.nativeEvent),M.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:ve(e.onPointerDown,M=>{M.button===0&&(v.current={x:M.clientX,y:M.clientY})}),onPointerMove:ve(e.onPointerMove,M=>{if(!v.current)return;const Y=M.clientX-v.current.x,B=M.clientY-v.current.y,V=!!w.current,P=["left","right"].includes(y.swipeDirection),j=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,L=P?j(0,Y):0,H=P?0:j(0,B),D=M.pointerType==="touch"?10:2,K={x:L,y:H},X={originalEvent:M,delta:K};V?(w.current=K,Ls(q0,p,X,{discrete:!1})):_d(K,y.swipeDirection,D)?(w.current=K,Ls(X0,d,X,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(Y)>D||Math.abs(B)>D)&&(v.current=null)}),onPointerUp:ve(e.onPointerUp,M=>{const Y=w.current,B=M.target;if(B.hasPointerCapture(M.pointerId)&&B.releasePointerCapture(M.pointerId),w.current=null,v.current=null,Y){const V=M.currentTarget,P={originalEvent:M,delta:Y};_d(Y,y.swipeDirection,y.swipeThreshold)?Ls(J0,f,P,{discrete:!0}):Ls(Z0,g,P,{discrete:!0}),V.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),rx=e=>{const{__scopeToast:t,children:n,...r}=e,o=Xi(ds,t),[s,i]=S.useState(!1),[l,a]=S.useState(!1);return ix(()=>i(!0)),S.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:c.jsx(qh,{asChild:!0,children:c.jsx(Yi,{...r,children:s&&c.jsxs(c.Fragment,{children:[o.label," ",n]})})})},ox="ToastTitle",om=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(He.div,{...r,ref:t})});om.displayName=ox;var sx="ToastDescription",sm=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(He.div,{...r,ref:t})});sm.displayName=sx;var im="ToastAction",lm=S.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(um,{altText:n,asChild:!0,children:c.jsx(Zu,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${im}\`. Expected non-empty \`string\`.`),null)});lm.displayName=im;var am="ToastClose",Zu=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=tx(am,n);return c.jsx(um,{asChild:!0,children:c.jsx(He.button,{type:"button",...r,ref:t,onClick:ve(e.onClick,o.onClose)})})});Zu.displayName=am;var um=S.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return c.jsx(He.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function cm(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),lx(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...cm(r))}}),t}function Ls(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Kh(o,s):o.dispatchEvent(s)}var _d=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function ix(e=()=>{}){const t=On(e);Mn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function lx(e){return e.nodeType===e.ELEMENT_NODE}function ax(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var ux=Jh,dm=tm,fm=rm,pm=om,hm=sm,mm=lm,gm=Zu;function vm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Id=ym,cx=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Id(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],p=s==null?void 0:s[u];if(d===null)return null;const g=Ld(d)||Ld(p);return o[u][g]}),l=n&&Object.entries(n).reduce((u,d)=>{let[p,g]=d;return g===void 0||(u[p]=g),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:p,className:g,...f}=d;return Object.entries(f).every(C=>{let[y,x]=C;return Array.isArray(x)?x.includes({...s,...l}[y]):{...s,...l}[y]===x})?[...u,p,g]:u},[]);return Id(e,i,a,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var fx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const px=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...l},a)=>S.createElement("svg",{ref:a,...fx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:xm("lucide",o),...l},[...i.map(([u,d])=>S.createElement(u,d)),...Array.isArray(s)?s:[s]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const We=(e,t)=>{const n=S.forwardRef(({className:r,...o},s)=>S.createElement(px,{ref:s,iconNode:t,className:xm(`lucide-${dx(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wm=We("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Sm=We("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Cm=We("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bm=We("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ju=We("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $a=We("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Em=We("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hx=We("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zd=We("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mx=We("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ec=We("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const km=We("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gx=We("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Nm=We("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),tc="-",vx=e=>{const t=xx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const l=i.split(tc);return l[0]===""&&l.length!==1&&l.shift(),Pm(l,t)||yx(i)},getConflictingClassGroupIds:(i,l)=>{const a=n[i]||[];return l&&r[i]?[...a,...r[i]]:a}}},Pm=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Pm(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(tc);return(i=t.validators.find(({validator:l})=>l(s)))==null?void 0:i.classGroupId},Dd=/^\[(.+)\]$/,yx=e=>{if(Dd.test(e)){const t=Dd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},xx=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Sx(Object.entries(e.classGroups),n).forEach(([s,i])=>{Ba(i,r,s,t)}),r},Ba=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Fd(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(wx(o)){Ba(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Ba(i,Fd(t,s),n,r)})})},Fd=(e,t)=>{let n=e;return t.split(tc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},wx=e=>e.isThemeGetter,Sx=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,l])=>[t+i,l])):s);return[n,o]}):e,Cx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Tm="!",bx=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=l=>{const a=[];let u=0,d=0,p;for(let x=0;xd?p-d:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:C,maybePostfixModifierPosition:y}};return n?l=>n({className:l,parseClassName:i}):i},Ex=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},kx=e=>({cache:Cx(e.cacheSize),parseClassName:bx(e),...vx(e)}),Nx=/\s+/,Px=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(Nx);let l="";for(let a=i.length-1;a>=0;a-=1){const u=i[a],{modifiers:d,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:f}=n(u);let C=!!f,y=r(C?g.substring(0,f):g);if(!y){if(!C){l=u+(l.length>0?" "+l:l);continue}if(y=r(g),!y){l=u+(l.length>0?" "+l:l);continue}C=!1}const x=Ex(d).join(":"),m=p?x+Tm:x,h=m+y;if(s.includes(h))continue;s.push(h);const v=o(y,C);for(let w=0;w0?" "+l:l)}return l};function Tx(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rp(d),e());return n=kx(u),r=n.cache.get,o=n.cache.set,s=l,l(a)}function l(a){const u=r(a);if(u)return u;const d=Px(a,n);return o(a,d),d}return function(){return s(Tx.apply(null,arguments))}}const re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Rm=/^\[(?:([a-z-]+):)?(.+)\]$/i,Rx=/^\d+\/\d+$/,Ax=new Set(["px","full","screen"]),Ox=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_x=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ix=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zt=e=>Lr(e)||Ax.has(e)||Rx.test(e),sn=e=>so(e,"length",Hx),Lr=e=>!!e&&!Number.isNaN(Number(e)),$l=e=>so(e,"number",Lr),xo=e=>!!e&&Number.isInteger(Number(e)),zx=e=>e.endsWith("%")&&Lr(e.slice(0,-1)),W=e=>Rm.test(e),ln=e=>Ox.test(e),Dx=new Set(["length","size","percentage"]),Fx=e=>so(e,Dx,Am),$x=e=>so(e,"position",Am),Bx=new Set(["image","url"]),Ux=e=>so(e,Bx,Qx),Vx=e=>so(e,"",Wx),wo=()=>!0,so=(e,t,n)=>{const r=Rm.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Hx=e=>Mx.test(e)&&!_x.test(e),Am=()=>!1,Wx=e=>Lx.test(e),Qx=e=>Ix.test(e),Kx=()=>{const e=re("colors"),t=re("spacing"),n=re("blur"),r=re("brightness"),o=re("borderColor"),s=re("borderRadius"),i=re("borderSpacing"),l=re("borderWidth"),a=re("contrast"),u=re("grayscale"),d=re("hueRotate"),p=re("invert"),g=re("gap"),f=re("gradientColorStops"),C=re("gradientColorStopPositions"),y=re("inset"),x=re("margin"),m=re("opacity"),h=re("padding"),v=re("saturate"),w=re("scale"),b=re("sepia"),E=re("skew"),k=re("space"),T=re("translate"),_=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",W,t],z=()=>[W,t],Q=()=>["",zt,sn],M=()=>["auto",Lr,W],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",W],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[Lr,W];return{cacheSize:500,separator:":",theme:{colors:[wo],spacing:[zt,sn],blur:["none","",ln,W],brightness:H(),borderColor:[e],borderRadius:["none","","full",ln,W],borderSpacing:z(),borderWidth:Q(),contrast:H(),grayscale:j(),hueRotate:H(),invert:j(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[zx,sn],inset:$(),margin:$(),opacity:H(),padding:z(),saturate:H(),scale:H(),sepia:j(),skew:H(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[ln]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Y(),W]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xo,W]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",xo,W]}],"grid-cols":[{"grid-cols":[wo]}],"col-start-end":[{col:["auto",{span:["full",xo,W]},W]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[wo]}],"row-start-end":[{row:["auto",{span:[xo,W]},W]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,t]}],"min-w":[{"min-w":[W,t,"min","max","fit"]}],"max-w":[{"max-w":[W,t,"none","full","min","max","fit","prose",{screen:[ln]},ln]}],h:[{h:[W,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ln,sn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$l]}],"font-family":[{font:[wo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",Lr,$l]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",zt,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",zt,sn]}],"underline-offset":[{"underline-offset":["auto",zt,W]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),$x]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Fx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ux]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[zt,W]}],"outline-w":[{outline:[zt,sn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[zt,sn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ln,Vx]}],"shadow-color":[{shadow:[wo]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",ln,W]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[v]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[xo,W]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[zt,sn,$l]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Gx=jx(Kx);function ur(...e){return Gx(ym(e))}const Yx=ux,Om=S.forwardRef(({className:e,...t},n)=>c.jsx(dm,{ref:n,className:ur("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Om.displayName=dm.displayName;const Xx=cx("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Mm=S.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(fm,{ref:r,className:ur(Xx({variant:t}),e),...n}));Mm.displayName=fm.displayName;const qx=S.forwardRef(({className:e,...t},n)=>c.jsx(mm,{ref:n,className:ur("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));qx.displayName=mm.displayName;const _m=S.forwardRef(({className:e,...t},n)=>c.jsx(gm,{ref:n,className:ur("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(Nm,{className:"h-4 w-4"})}));_m.displayName=gm.displayName;const Lm=S.forwardRef(({className:e,...t},n)=>c.jsx(pm,{ref:n,className:ur("text-sm font-semibold",e),...t}));Lm.displayName=pm.displayName;const Im=S.forwardRef(({className:e,...t},n)=>c.jsx(hm,{ref:n,className:ur("text-sm opacity-90",e),...t}));Im.displayName=hm.displayName;function Zx(){const{toasts:e}=v0();return c.jsxs(Yx,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return c.jsxs(Mm,{...s,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(Lm,{children:n}),r&&c.jsx(Im,{children:r})]}),o,c.jsx(_m,{})]},t)}),c.jsx(Om,{})]})}var $d=["light","dark"],Jx="(prefers-color-scheme: dark)",ew=S.createContext(void 0),tw={setTheme:e=>{},themes:[]},nw=()=>{var e;return(e=S.useContext(ew))!=null?e:tw};S.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:l,nonce:a})=>{let u=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(C=>`'${C}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=o?$d.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=(C,y=!1,x=!0)=>{let m=i?i[C]:C,h=y?C+"|| ''":`'${m}'`,v="";return o&&x&&!y&&$d.includes(C)&&(v+=`d.style.colorScheme = '${C}';`),n==="class"?y||m?v+=`c.add(${h})`:v+="null":m&&(v+=`d[s](n,${h})`),v},f=e?`!function(){${d}${g(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Jx}',m=window.matchMedia(t);if(m.media!==t||m.matches){${g("dark")}}else{${g("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${g(i?"x[e]":"e",!0)}}${u?"":"else{"+g(s,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${g(i?"x[e]":"e",!0)}}else{${g(s,!1,!1)};}${p}}catch(t){}}();`;return S.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:f}})});var rw=e=>{switch(e){case"success":return iw;case"info":return aw;case"warning":return lw;case"error":return uw;default:return null}},ow=Array(12).fill(0),sw=({visible:e,className:t})=>A.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},A.createElement("div",{className:"sonner-spinner"},ow.map((n,r)=>A.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),iw=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),lw=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),aw=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),uw=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),cw=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},A.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),dw=()=>{let[e,t]=A.useState(document.hidden);return A.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Ua=1,fw=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Ua++,s=this.toasts.find(l=>l.id===o),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:i,title:n}):l):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,i=r.then(async a=>{if(s=["resolve",a],A.isValidElement(a))o=!1,this.create({id:n,type:"default",message:a});else if(hw(a)&&!a.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(a):t.success,d=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async a=>{if(s=["reject",a],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(a):t.error,d=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var a;o&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),l=()=>new Promise((a,u)=>i.then(()=>s[0]==="reject"?u(s[1]):a(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Ua++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ze=new fw,pw=(e,t)=>{let n=(t==null?void 0:t.id)||Ua++;return ze.addToast({title:e,...t,id:n}),n},hw=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",mw=pw,gw=()=>ze.toasts,vw=()=>ze.getActiveToasts();Object.assign(mw,{success:ze.success,info:ze.info,warning:ze.warning,error:ze.error,custom:ze.custom,message:ze.message,promise:ze.promise,dismiss:ze.dismiss,loading:ze.loading},{getHistory:gw,getToasts:vw});function yw(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}yw(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function Is(e){return e.label!==void 0}var xw=3,ww="32px",Sw="16px",Bd=4e3,Cw=356,bw=14,Ew=20,kw=200;function pt(...e){return e.filter(Boolean).join(" ")}function Nw(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var Pw=e=>{var t,n,r,o,s,i,l,a,u,d,p;let{invert:g,toast:f,unstyled:C,interacting:y,setHeights:x,visibleToasts:m,heights:h,index:v,toasts:w,expanded:b,removeToast:E,defaultRichColors:k,closeButton:T,style:_,cancelButtonStyle:O,actionButtonStyle:$,className:z="",descriptionClassName:Q="",duration:M,position:Y,gap:B,loadingIcon:V,expandByDefault:P,classNames:j,icons:L,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:D}=e,[K,X]=A.useState(null),[he,Ne]=A.useState(null),[J,cr]=A.useState(!1),[Zt,Fn]=A.useState(!1),[Jt,dr]=A.useState(!1),[en,ps]=A.useState(!1),[il,hs]=A.useState(!1),[ll,ao]=A.useState(0),[fr,hc]=A.useState(0),uo=A.useRef(f.duration||M||Bd),mc=A.useRef(null),$n=A.useRef(null),Ag=v===0,Og=v+1<=m,tt=f.type,pr=f.dismissible!==!1,Mg=f.className||"",_g=f.descriptionClassName||"",ms=A.useMemo(()=>h.findIndex(U=>U.toastId===f.id)||0,[h,f.id]),Lg=A.useMemo(()=>{var U;return(U=f.closeButton)!=null?U:T},[f.closeButton,T]),gc=A.useMemo(()=>f.duration||M||Bd,[f.duration,M]),al=A.useRef(0),hr=A.useRef(0),vc=A.useRef(0),mr=A.useRef(null),[Ig,zg]=Y.split("-"),yc=A.useMemo(()=>h.reduce((U,te,ie)=>ie>=ms?U:U+te.height,0),[h,ms]),xc=dw(),Dg=f.invert||g,ul=tt==="loading";hr.current=A.useMemo(()=>ms*B+yc,[ms,yc]),A.useEffect(()=>{uo.current=gc},[gc]),A.useEffect(()=>{cr(!0)},[]),A.useEffect(()=>{let U=$n.current;if(U){let te=U.getBoundingClientRect().height;return hc(te),x(ie=>[{toastId:f.id,height:te,position:f.position},...ie]),()=>x(ie=>ie.filter(ut=>ut.toastId!==f.id))}},[x,f.id]),A.useLayoutEffect(()=>{if(!J)return;let U=$n.current,te=U.style.height;U.style.height="auto";let ie=U.getBoundingClientRect().height;U.style.height=te,hc(ie),x(ut=>ut.find(ct=>ct.toastId===f.id)?ut.map(ct=>ct.toastId===f.id?{...ct,height:ie}:ct):[{toastId:f.id,height:ie,position:f.position},...ut])},[J,f.title,f.description,x,f.id]);let tn=A.useCallback(()=>{Fn(!0),ao(hr.current),x(U=>U.filter(te=>te.toastId!==f.id)),setTimeout(()=>{E(f)},kw)},[f,E,x,hr]);A.useEffect(()=>{if(f.promise&&tt==="loading"||f.duration===1/0||f.type==="loading")return;let U;return b||y||D&&xc?(()=>{if(vc.current{var te;(te=f.onAutoClose)==null||te.call(f,f),tn()},uo.current)),()=>clearTimeout(U)},[b,y,f,tt,D,xc,tn]),A.useEffect(()=>{f.delete&&tn()},[tn,f.delete]);function Fg(){var U,te,ie;return L!=null&&L.loading?A.createElement("div",{className:pt(j==null?void 0:j.loader,(U=f==null?void 0:f.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":tt==="loading"},L.loading):V?A.createElement("div",{className:pt(j==null?void 0:j.loader,(te=f==null?void 0:f.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":tt==="loading"},V):A.createElement(sw,{className:pt(j==null?void 0:j.loader,(ie=f==null?void 0:f.classNames)==null?void 0:ie.loader),visible:tt==="loading"})}return A.createElement("li",{tabIndex:0,ref:$n,className:pt(z,Mg,j==null?void 0:j.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,j==null?void 0:j.default,j==null?void 0:j[tt],(n=f==null?void 0:f.classNames)==null?void 0:n[tt]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:k,"data-styled":!(f.jsx||f.unstyled||C),"data-mounted":J,"data-promise":!!f.promise,"data-swiped":il,"data-removed":Zt,"data-visible":Og,"data-y-position":Ig,"data-x-position":zg,"data-index":v,"data-front":Ag,"data-swiping":Jt,"data-dismissible":pr,"data-type":tt,"data-invert":Dg,"data-swipe-out":en,"data-swipe-direction":he,"data-expanded":!!(b||P&&J),style:{"--index":v,"--toasts-before":v,"--z-index":w.length-v,"--offset":`${Zt?ll:hr.current}px`,"--initial-height":P?"auto":`${fr}px`,..._,...f.style},onDragEnd:()=>{dr(!1),X(null),mr.current=null},onPointerDown:U=>{ul||!pr||(mc.current=new Date,ao(hr.current),U.target.setPointerCapture(U.pointerId),U.target.tagName!=="BUTTON"&&(dr(!0),mr.current={x:U.clientX,y:U.clientY}))},onPointerUp:()=>{var U,te,ie,ut;if(en||!pr)return;mr.current=null;let ct=Number(((U=$n.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),nn=Number(((te=$n.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Bn=new Date().getTime()-((ie=mc.current)==null?void 0:ie.getTime()),dt=K==="x"?ct:nn,rn=Math.abs(dt)/Bn;if(Math.abs(dt)>=Ew||rn>.11){ao(hr.current),(ut=f.onDismiss)==null||ut.call(f,f),Ne(K==="x"?ct>0?"right":"left":nn>0?"down":"up"),tn(),ps(!0),hs(!1);return}dr(!1),X(null)},onPointerMove:U=>{var te,ie,ut,ct;if(!mr.current||!pr||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let nn=U.clientY-mr.current.y,Bn=U.clientX-mr.current.x,dt=(ie=e.swipeDirections)!=null?ie:Nw(Y);!K&&(Math.abs(Bn)>1||Math.abs(nn)>1)&&X(Math.abs(Bn)>Math.abs(nn)?"x":"y");let rn={x:0,y:0};K==="y"?(dt.includes("top")||dt.includes("bottom"))&&(dt.includes("top")&&nn<0||dt.includes("bottom")&&nn>0)&&(rn.y=nn):K==="x"&&(dt.includes("left")||dt.includes("right"))&&(dt.includes("left")&&Bn<0||dt.includes("right")&&Bn>0)&&(rn.x=Bn),(Math.abs(rn.x)>0||Math.abs(rn.y)>0)&&hs(!0),(ut=$n.current)==null||ut.style.setProperty("--swipe-amount-x",`${rn.x}px`),(ct=$n.current)==null||ct.style.setProperty("--swipe-amount-y",`${rn.y}px`)}},Lg&&!f.jsx?A.createElement("button",{"aria-label":H,"data-disabled":ul,"data-close-button":!0,onClick:ul||!pr?()=>{}:()=>{var U;tn(),(U=f.onDismiss)==null||U.call(f,f)},className:pt(j==null?void 0:j.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(s=L==null?void 0:L.close)!=null?s:cw):null,f.jsx||S.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:A.createElement(A.Fragment,null,tt||f.icon||f.promise?A.createElement("div",{"data-icon":"",className:pt(j==null?void 0:j.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Fg():null,f.type!=="loading"?f.icon||(L==null?void 0:L[tt])||rw(tt):null):null,A.createElement("div",{"data-content":"",className:pt(j==null?void 0:j.content,(l=f==null?void 0:f.classNames)==null?void 0:l.content)},A.createElement("div",{"data-title":"",className:pt(j==null?void 0:j.title,(a=f==null?void 0:f.classNames)==null?void 0:a.title)},typeof f.title=="function"?f.title():f.title),f.description?A.createElement("div",{"data-description":"",className:pt(Q,_g,j==null?void 0:j.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),S.isValidElement(f.cancel)?f.cancel:f.cancel&&Is(f.cancel)?A.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||O,onClick:U=>{var te,ie;Is(f.cancel)&&pr&&((ie=(te=f.cancel).onClick)==null||ie.call(te,U),tn())},className:pt(j==null?void 0:j.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,S.isValidElement(f.action)?f.action:f.action&&Is(f.action)?A.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||$,onClick:U=>{var te,ie;Is(f.action)&&((ie=(te=f.action).onClick)==null||ie.call(te,U),!U.defaultPrevented&&tn())},className:pt(j==null?void 0:j.actionButton,(p=f==null?void 0:f.classNames)==null?void 0:p.actionButton)},f.action.label):null))};function Ud(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Tw(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",l=s?Sw:ww;function a(u){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=l:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}var jw=S.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:l,offset:a,mobileOffset:u,theme:d="light",richColors:p,duration:g,style:f,visibleToasts:C=xw,toastOptions:y,dir:x=Ud(),gap:m=bw,loadingIcon:h,icons:v,containerAriaLabel:w="Notifications",pauseWhenPageIsHidden:b}=e,[E,k]=A.useState([]),T=A.useMemo(()=>Array.from(new Set([r].concat(E.filter(D=>D.position).map(D=>D.position)))),[E,r]),[_,O]=A.useState([]),[$,z]=A.useState(!1),[Q,M]=A.useState(!1),[Y,B]=A.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=A.useRef(null),P=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=A.useRef(null),L=A.useRef(!1),H=A.useCallback(D=>{k(K=>{var X;return(X=K.find(he=>he.id===D.id))!=null&&X.delete||ze.dismiss(D.id),K.filter(({id:he})=>he!==D.id)})},[]);return A.useEffect(()=>ze.subscribe(D=>{if(D.dismiss){k(K=>K.map(X=>X.id===D.id?{...X,delete:!0}:X));return}setTimeout(()=>{Vh.flushSync(()=>{k(K=>{let X=K.findIndex(he=>he.id===D.id);return X!==-1?[...K.slice(0,X),{...K[X],...D},...K.slice(X+1)]:[D,...K]})})})}),[]),A.useEffect(()=>{if(d!=="system"){B(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window>"u")return;let D=window.matchMedia("(prefers-color-scheme: dark)");try{D.addEventListener("change",({matches:K})=>{B(K?"dark":"light")})}catch{D.addListener(({matches:X})=>{try{B(X?"dark":"light")}catch(he){console.error(he)}})}},[d]),A.useEffect(()=>{E.length<=1&&z(!1)},[E]),A.useEffect(()=>{let D=K=>{var X,he;o.every(Ne=>K[Ne]||K.code===Ne)&&(z(!0),(X=V.current)==null||X.focus()),K.code==="Escape"&&(document.activeElement===V.current||(he=V.current)!=null&&he.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[o]),A.useEffect(()=>{if(V.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,L.current=!1)}},[V.current]),A.createElement("section",{ref:t,"aria-label":`${w} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((D,K)=>{var X;let[he,Ne]=D.split("-");return E.length?A.createElement("ol",{key:D,dir:x==="auto"?Ud():x,tabIndex:-1,ref:V,className:l,"data-sonner-toaster":!0,"data-theme":Y,"data-y-position":he,"data-lifted":$&&E.length>1&&!s,"data-x-position":Ne,style:{"--front-toast-height":`${((X=_[0])==null?void 0:X.height)||0}px`,"--width":`${Cw}px`,"--gap":`${m}px`,...f,...Tw(a,u)},onBlur:J=>{L.current&&!J.currentTarget.contains(J.relatedTarget)&&(L.current=!1,j.current&&(j.current.focus({preventScroll:!0}),j.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||L.current||(L.current=!0,j.current=J.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{Q||z(!1)},onDragEnd:()=>z(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},E.filter(J=>!J.position&&K===0||J.position===D).map((J,cr)=>{var Zt,Fn;return A.createElement(Pw,{key:J.id,icons:v,index:cr,toast:J,defaultRichColors:p,duration:(Zt=y==null?void 0:y.duration)!=null?Zt:g,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:n,visibleToasts:C,closeButton:(Fn=y==null?void 0:y.closeButton)!=null?Fn:i,interacting:Q,position:D,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:H,toasts:E.filter(Jt=>Jt.position==J.position),heights:_.filter(Jt=>Jt.position==J.position),setHeights:O,expandByDefault:s,gap:m,loadingIcon:h,expanded:$,pauseWhenPageIsHidden:b,swipeDirections:e.swipeDirections})})):null}))});const Rw=({...e})=>{const{theme:t="system"}=nw();return c.jsx(jw,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},Aw=["top","right","bottom","left"],_n=Math.min,Ge=Math.max,ki=Math.round,zs=Math.floor,_t=e=>({x:e,y:e}),Ow={left:"right",right:"left",bottom:"top",top:"bottom"},Mw={start:"end",end:"start"};function Va(e,t,n){return Ge(e,_n(t,n))}function Yt(e,t){return typeof e=="function"?e(t):e}function Xt(e){return e.split("-")[0]}function io(e){return e.split("-")[1]}function nc(e){return e==="x"?"y":"x"}function rc(e){return e==="y"?"height":"width"}const _w=new Set(["top","bottom"]);function At(e){return _w.has(Xt(e))?"y":"x"}function oc(e){return nc(At(e))}function Lw(e,t,n){n===void 0&&(n=!1);const r=io(e),o=oc(e),s=rc(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ni(i)),[i,Ni(i)]}function Iw(e){const t=Ni(e);return[Ha(e),t,Ha(t)]}function Ha(e){return e.replace(/start|end/g,t=>Mw[t])}const Vd=["left","right"],Hd=["right","left"],zw=["top","bottom"],Dw=["bottom","top"];function Fw(e,t,n){switch(e){case"top":case"bottom":return n?t?Hd:Vd:t?Vd:Hd;case"left":case"right":return t?zw:Dw;default:return[]}}function $w(e,t,n,r){const o=io(e);let s=Fw(Xt(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Ha)))),s}function Ni(e){return e.replace(/left|right|bottom|top/g,t=>Ow[t])}function Bw(e){return{top:0,right:0,bottom:0,left:0,...e}}function zm(e){return typeof e!="number"?Bw(e):{top:e,right:e,bottom:e,left:e}}function Pi(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Wd(e,t,n){let{reference:r,floating:o}=e;const s=At(t),i=oc(t),l=rc(i),a=Xt(t),u=s==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,g=r[l]/2-o[l]/2;let f;switch(a){case"top":f={x:d,y:r.y-o.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:p};break;case"left":f={x:r.x-o.width,y:p};break;default:f={x:r.x,y:r.y}}switch(io(t)){case"start":f[i]-=g*(n&&u?-1:1);break;case"end":f[i]+=g*(n&&u?-1:1);break}return f}const Uw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=Wd(u,r,a),g=r,f={},C=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:l,middlewareData:a}=t,{element:u,padding:d=0}=Yt(e,t)||{};if(u==null)return{};const p=zm(d),g={x:n,y:r},f=oc(o),C=rc(f),y=await i.getDimensions(u),x=f==="y",m=x?"top":"left",h=x?"bottom":"right",v=x?"clientHeight":"clientWidth",w=s.reference[C]+s.reference[f]-g[f]-s.floating[C],b=g[f]-s.reference[f],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let k=E?E[v]:0;(!k||!await(i.isElement==null?void 0:i.isElement(E)))&&(k=l.floating[v]||s.floating[C]);const T=w/2-b/2,_=k/2-y[C]/2-1,O=_n(p[m],_),$=_n(p[h],_),z=O,Q=k-y[C]-$,M=k/2-y[C]/2+T,Y=Va(z,M,Q),B=!a.arrow&&io(o)!=null&&M!==Y&&s.reference[C]/2-(MM<=0)){var $,z;const M=((($=s.flip)==null?void 0:$.index)||0)+1,Y=k[M];if(Y&&(!(p==="alignment"?h!==At(Y):!1)||O.every(P=>P.overflows[0]>0&&At(P.placement)===h)))return{data:{index:M,overflows:O},reset:{placement:Y}};let B=(z=O.filter(V=>V.overflows[0]<=0).sort((V,P)=>V.overflows[1]-P.overflows[1])[0])==null?void 0:z.placement;if(!B)switch(f){case"bestFit":{var Q;const V=(Q=O.filter(P=>{if(E){const j=At(P.placement);return j===h||j==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(j=>j>0).reduce((j,L)=>j+L,0)]).sort((P,j)=>P[1]-j[1])[0])==null?void 0:Q[0];V&&(B=V);break}case"initialPlacement":B=l;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function Qd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Kd(e){return Aw.some(t=>e[t]>=0)}const Ww=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Yt(e,t);switch(r){case"referenceHidden":{const s=await Zo(t,{...o,elementContext:"reference"}),i=Qd(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Kd(i)}}}case"escaped":{const s=await Zo(t,{...o,altBoundary:!0}),i=Qd(s,n.floating);return{data:{escapedOffsets:i,escaped:Kd(i)}}}default:return{}}}}},Dm=new Set(["left","top"]);async function Qw(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Xt(n),l=io(n),a=At(n)==="y",u=Dm.has(i)?-1:1,d=s&&a?-1:1,p=Yt(t,e);let{mainAxis:g,crossAxis:f,alignmentAxis:C}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof C=="number"&&(f=l==="end"?C*-1:C),a?{x:f*d,y:g*u}:{x:g*u,y:f*d}}const Kw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:l}=t,a=await Qw(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:s+a.y,data:{...a,placement:i}}}}},Gw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:x=>{let{x:m,y:h}=x;return{x:m,y:h}}},...a}=Yt(e,t),u={x:n,y:r},d=await Zo(t,a),p=At(Xt(o)),g=nc(p);let f=u[g],C=u[p];if(s){const x=g==="y"?"top":"left",m=g==="y"?"bottom":"right",h=f+d[x],v=f-d[m];f=Va(h,f,v)}if(i){const x=p==="y"?"top":"left",m=p==="y"?"bottom":"right",h=C+d[x],v=C-d[m];C=Va(h,C,v)}const y=l.fn({...t,[g]:f,[p]:C});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[g]:s,[p]:i}}}}}},Yw=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=Yt(e,t),d={x:n,y:r},p=At(o),g=nc(p);let f=d[g],C=d[p];const y=Yt(l,t),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(a){const v=g==="y"?"height":"width",w=s.reference[g]-s.floating[v]+x.mainAxis,b=s.reference[g]+s.reference[v]-x.mainAxis;fb&&(f=b)}if(u){var m,h;const v=g==="y"?"width":"height",w=Dm.has(Xt(o)),b=s.reference[p]-s.floating[v]+(w&&((m=i.offset)==null?void 0:m[p])||0)+(w?0:x.crossAxis),E=s.reference[p]+s.reference[v]+(w?0:((h=i.offset)==null?void 0:h[p])||0)-(w?x.crossAxis:0);CE&&(C=E)}return{[g]:f,[p]:C}}}},Xw=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:l}=t,{apply:a=()=>{},...u}=Yt(e,t),d=await Zo(t,u),p=Xt(o),g=io(o),f=At(o)==="y",{width:C,height:y}=s.floating;let x,m;p==="top"||p==="bottom"?(x=p,m=g===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(m=p,x=g==="end"?"top":"bottom");const h=y-d.top-d.bottom,v=C-d.left-d.right,w=_n(y-d[x],h),b=_n(C-d[m],v),E=!t.middlewareData.shift;let k=w,T=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=h),E&&!g){const O=Ge(d.left,0),$=Ge(d.right,0),z=Ge(d.top,0),Q=Ge(d.bottom,0);f?T=C-2*(O!==0||$!==0?O+$:Ge(d.left,d.right)):k=y-2*(z!==0||Q!==0?z+Q:Ge(d.top,d.bottom))}await a({...t,availableWidth:T,availableHeight:k});const _=await i.getDimensions(l.floating);return C!==_.width||y!==_.height?{reset:{rects:!0}}:{}}}};function qi(){return typeof window<"u"}function lo(e){return Fm(e)?(e.nodeName||"").toLowerCase():"#document"}function qe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function It(e){var t;return(t=(Fm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fm(e){return qi()?e instanceof Node||e instanceof qe(e).Node:!1}function bt(e){return qi()?e instanceof Element||e instanceof qe(e).Element:!1}function Lt(e){return qi()?e instanceof HTMLElement||e instanceof qe(e).HTMLElement:!1}function Gd(e){return!qi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qe(e).ShadowRoot}const qw=new Set(["inline","contents"]);function fs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!qw.has(o)}const Zw=new Set(["table","td","th"]);function Jw(e){return Zw.has(lo(e))}const e1=[":popover-open",":modal"];function Zi(e){return e1.some(t=>{try{return e.matches(t)}catch{return!1}})}const t1=["transform","translate","scale","rotate","perspective"],n1=["transform","translate","scale","rotate","perspective","filter"],r1=["paint","layout","strict","content"];function sc(e){const t=ic(),n=bt(e)?Et(e):e;return t1.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||n1.some(r=>(n.willChange||"").includes(r))||r1.some(r=>(n.contain||"").includes(r))}function o1(e){let t=Ln(e);for(;Lt(t)&&!eo(t);){if(sc(t))return t;if(Zi(t))return null;t=Ln(t)}return null}function ic(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const s1=new Set(["html","body","#document"]);function eo(e){return s1.has(lo(e))}function Et(e){return qe(e).getComputedStyle(e)}function Ji(e){return bt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ln(e){if(lo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gd(e)&&e.host||It(e);return Gd(t)?t.host:t}function $m(e){const t=Ln(e);return eo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Lt(t)&&fs(t)?t:$m(t)}function Jo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=$m(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=qe(o);if(s){const l=Wa(i);return t.concat(i,i.visualViewport||[],fs(o)?o:[],l&&n?Jo(l):[])}return t.concat(o,Jo(o,[],n))}function Wa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Bm(e){const t=Et(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Lt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=ki(n)!==s||ki(r)!==i;return l&&(n=s,r=i),{width:n,height:r,$:l}}function lc(e){return bt(e)?e:e.contextElement}function Ir(e){const t=lc(e);if(!Lt(t))return _t(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Bm(t);let i=(s?ki(n.width):n.width)/r,l=(s?ki(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const i1=_t(0);function Um(e){const t=qe(e);return!ic()||!t.visualViewport?i1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function l1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==qe(e)?!1:t}function ir(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=lc(e);let i=_t(1);t&&(r?bt(r)&&(i=Ir(r)):i=Ir(e));const l=l1(s,n,r)?Um(s):_t(0);let a=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,d=o.width/i.x,p=o.height/i.y;if(s){const g=qe(s),f=r&&bt(r)?qe(r):r;let C=g,y=Wa(C);for(;y&&r&&f!==C;){const x=Ir(y),m=y.getBoundingClientRect(),h=Et(y),v=m.left+(y.clientLeft+parseFloat(h.paddingLeft))*x.x,w=m.top+(y.clientTop+parseFloat(h.paddingTop))*x.y;a*=x.x,u*=x.y,d*=x.x,p*=x.y,a+=v,u+=w,C=qe(y),y=Wa(C)}}return Pi({width:d,height:p,x:a,y:u})}function ac(e,t){const n=Ji(e).scrollLeft;return t?t.left+n:ir(It(e)).left+n}function Vm(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ac(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function a1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=It(r),l=t?Zi(t.floating):!1;if(r===i||l&&s)return n;let a={scrollLeft:0,scrollTop:0},u=_t(1);const d=_t(0),p=Lt(r);if((p||!p&&!s)&&((lo(r)!=="body"||fs(i))&&(a=Ji(r)),Lt(r))){const f=ir(r);u=Ir(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}const g=i&&!p&&!s?Vm(i,a,!0):_t(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+d.x+g.x,y:n.y*u.y-a.scrollTop*u.y+d.y+g.y}}function u1(e){return Array.from(e.getClientRects())}function c1(e){const t=It(e),n=Ji(e),r=e.ownerDocument.body,o=Ge(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ge(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+ac(e);const l=-n.scrollTop;return Et(r).direction==="rtl"&&(i+=Ge(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:l}}function d1(e,t){const n=qe(e),r=It(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,l=0,a=0;if(o){s=o.width,i=o.height;const u=ic();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:i,x:l,y:a}}const f1=new Set(["absolute","fixed"]);function p1(e,t){const n=ir(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Lt(e)?Ir(e):_t(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,a=o*s.x,u=r*s.y;return{width:i,height:l,x:a,y:u}}function Yd(e,t,n){let r;if(t==="viewport")r=d1(e,n);else if(t==="document")r=c1(It(e));else if(bt(t))r=p1(t,n);else{const o=Um(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Pi(r)}function Hm(e,t){const n=Ln(e);return n===t||!bt(n)||eo(n)?!1:Et(n).position==="fixed"||Hm(n,t)}function h1(e,t){const n=t.get(e);if(n)return n;let r=Jo(e,[],!1).filter(l=>bt(l)&&lo(l)!=="body"),o=null;const s=Et(e).position==="fixed";let i=s?Ln(e):e;for(;bt(i)&&!eo(i);){const l=Et(i),a=sc(i);!a&&l.position==="fixed"&&(o=null),(s?!a&&!o:!a&&l.position==="static"&&!!o&&f1.has(o.position)||fs(i)&&!a&&Hm(e,i))?r=r.filter(d=>d!==i):o=l,i=Ln(i)}return t.set(e,r),r}function m1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Zi(t)?[]:h1(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((u,d)=>{const p=Yd(t,d,o);return u.top=Ge(p.top,u.top),u.right=_n(p.right,u.right),u.bottom=_n(p.bottom,u.bottom),u.left=Ge(p.left,u.left),u},Yd(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function g1(e){const{width:t,height:n}=Bm(e);return{width:t,height:n}}function v1(e,t,n){const r=Lt(t),o=It(t),s=n==="fixed",i=ir(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const a=_t(0);function u(){a.x=ac(o)}if(r||!r&&!s)if((lo(t)!=="body"||fs(o))&&(l=Ji(t)),r){const f=ir(t,!0,s,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?Vm(o,l):_t(0),p=i.left+l.scrollLeft-a.x-d.x,g=i.top+l.scrollTop-a.y-d.y;return{x:p,y:g,width:i.width,height:i.height}}function Bl(e){return Et(e).position==="static"}function Xd(e,t){if(!Lt(e)||Et(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return It(e)===n&&(n=n.ownerDocument.body),n}function Wm(e,t){const n=qe(e);if(Zi(e))return n;if(!Lt(e)){let o=Ln(e);for(;o&&!eo(o);){if(bt(o)&&!Bl(o))return o;o=Ln(o)}return n}let r=Xd(e,t);for(;r&&Jw(r)&&Bl(r);)r=Xd(r,t);return r&&eo(r)&&Bl(r)&&!sc(r)?n:r||o1(e)||n}const y1=async function(e){const t=this.getOffsetParent||Wm,n=this.getDimensions,r=await n(e.floating);return{reference:v1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function x1(e){return Et(e).direction==="rtl"}const w1={convertOffsetParentRelativeRectToViewportRelativeRect:a1,getDocumentElement:It,getClippingRect:m1,getOffsetParent:Wm,getElementRects:y1,getClientRects:u1,getDimensions:g1,getScale:Ir,isElement:bt,isRTL:x1};function Qm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function S1(e,t){let n=null,r;const o=It(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();const u=e.getBoundingClientRect(),{left:d,top:p,width:g,height:f}=u;if(l||t(),!g||!f)return;const C=zs(p),y=zs(o.clientWidth-(d+g)),x=zs(o.clientHeight-(p+f)),m=zs(d),v={rootMargin:-C+"px "+-y+"px "+-x+"px "+-m+"px",threshold:Ge(0,_n(1,a))||1};let w=!0;function b(E){const k=E[0].intersectionRatio;if(k!==a){if(!w)return i();k?i(!1,k):r=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!Qm(u,e.getBoundingClientRect())&&i(),w=!1}try{n=new IntersectionObserver(b,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return i(!0),s}function C1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=lc(e),d=o||s?[...u?Jo(u):[],...Jo(t)]:[];d.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const p=u&&l?S1(u,n):null;let g=-1,f=null;i&&(f=new ResizeObserver(m=>{let[h]=m;h&&h.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var v;(v=f)==null||v.observe(t)})),n()}),u&&!a&&f.observe(u),f.observe(t));let C,y=a?ir(e):null;a&&x();function x(){const m=ir(e);y&&!Qm(y,m)&&n(),y=m,C=requestAnimationFrame(x)}return n(),()=>{var m;d.forEach(h=>{o&&h.removeEventListener("scroll",n),s&&h.removeEventListener("resize",n)}),p==null||p(),(m=f)==null||m.disconnect(),f=null,a&&cancelAnimationFrame(C)}}const b1=Kw,E1=Gw,k1=Hw,N1=Xw,P1=Ww,qd=Vw,T1=Yw,j1=(e,t,n)=>{const r=new Map,o={platform:w1,...n},s={...o.platform,_c:r};return Uw(e,t,{...o,platform:s})};var R1=typeof document<"u",A1=function(){},Js=R1?S.useLayoutEffect:A1;function Ti(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ti(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Ti(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Km(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zd(e,t){const n=Km(e);return Math.round(t*n)/n}function Ul(e){const t=S.useRef(e);return Js(()=>{t.current=e}),t}function O1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[d,p]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,f]=S.useState(r);Ti(g,r)||f(r);const[C,y]=S.useState(null),[x,m]=S.useState(null),h=S.useCallback(P=>{P!==E.current&&(E.current=P,y(P))},[]),v=S.useCallback(P=>{P!==k.current&&(k.current=P,m(P))},[]),w=s||C,b=i||x,E=S.useRef(null),k=S.useRef(null),T=S.useRef(d),_=a!=null,O=Ul(a),$=Ul(o),z=Ul(u),Q=S.useCallback(()=>{if(!E.current||!k.current)return;const P={placement:t,strategy:n,middleware:g};$.current&&(P.platform=$.current),j1(E.current,k.current,P).then(j=>{const L={...j,isPositioned:z.current!==!1};M.current&&!Ti(T.current,L)&&(T.current=L,cs.flushSync(()=>{p(L)}))})},[g,t,n,$,z]);Js(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,p(P=>({...P,isPositioned:!1})))},[u]);const M=S.useRef(!1);Js(()=>(M.current=!0,()=>{M.current=!1}),[]),Js(()=>{if(w&&(E.current=w),b&&(k.current=b),w&&b){if(O.current)return O.current(w,b,Q);Q()}},[w,b,Q,O,_]);const Y=S.useMemo(()=>({reference:E,floating:k,setReference:h,setFloating:v}),[h,v]),B=S.useMemo(()=>({reference:w,floating:b}),[w,b]),V=S.useMemo(()=>{const P={position:n,left:0,top:0};if(!B.floating)return P;const j=Zd(B.floating,d.x),L=Zd(B.floating,d.y);return l?{...P,transform:"translate("+j+"px, "+L+"px)",...Km(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:L}},[n,l,B.floating,d.x,d.y]);return S.useMemo(()=>({...d,update:Q,refs:Y,elements:B,floatingStyles:V}),[d,Q,Y,B,V])}const M1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?qd({element:r.current,padding:o}).fn(n):{}:r?qd({element:r,padding:o}).fn(n):{}}}},_1=(e,t)=>({...b1(e),options:[e,t]}),L1=(e,t)=>({...E1(e),options:[e,t]}),I1=(e,t)=>({...T1(e),options:[e,t]}),z1=(e,t)=>({...k1(e),options:[e,t]}),D1=(e,t)=>({...N1(e),options:[e,t]}),F1=(e,t)=>({...P1(e),options:[e,t]}),$1=(e,t)=>({...M1(e),options:[e,t]});var B1="Arrow",Gm=S.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(He.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Gm.displayName=B1;var U1=Gm;function V1(e){const[t,n]=S.useState(void 0);return Mn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,l;if("borderBoxSize"in s){const a=s.borderBoxSize,u=Array.isArray(a)?a[0]:a;i=u.inlineSize,l=u.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ym="Popper",[Xm,qm]=Gi(Ym),[cC,Zm]=Xm(Ym),Jm="PopperAnchor",eg=S.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Zm(Jm,n),i=S.useRef(null),l=Ct(t,i);return S.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:c.jsx(He.div,{...o,ref:l})});eg.displayName=Jm;var uc="PopperContent",[H1,W1]=Xm(uc),tg=S.forwardRef((e,t)=>{var J,cr,Zt,Fn,Jt,dr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:f="optimized",onPlaced:C,...y}=e,x=Zm(uc,n),[m,h]=S.useState(null),v=Ct(t,en=>h(en)),[w,b]=S.useState(null),E=V1(w),k=(E==null?void 0:E.width)??0,T=(E==null?void 0:E.height)??0,_=r+(s!=="center"?"-"+s:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=Array.isArray(u)?u:[u],z=$.length>0,Q={padding:O,boundary:$.filter(K1),altBoundary:z},{refs:M,floatingStyles:Y,placement:B,isPositioned:V,middlewareData:P}=O1({strategy:"fixed",placement:_,whileElementsMounted:(...en)=>C1(...en,{animationFrame:f==="always"}),elements:{reference:x.anchor},middleware:[_1({mainAxis:o+T,alignmentAxis:i}),a&&L1({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?I1():void 0,...Q}),a&&z1({...Q}),D1({...Q,apply:({elements:en,rects:ps,availableWidth:il,availableHeight:hs})=>{const{width:ll,height:ao}=ps.reference,fr=en.floating.style;fr.setProperty("--radix-popper-available-width",`${il}px`),fr.setProperty("--radix-popper-available-height",`${hs}px`),fr.setProperty("--radix-popper-anchor-width",`${ll}px`),fr.setProperty("--radix-popper-anchor-height",`${ao}px`)}}),w&&$1({element:w,padding:l}),G1({arrowWidth:k,arrowHeight:T}),g&&F1({strategy:"referenceHidden",...Q})]}),[j,L]=og(B),H=On(C);Mn(()=>{V&&(H==null||H())},[V,H]);const D=(J=P.arrow)==null?void 0:J.x,K=(cr=P.arrow)==null?void 0:cr.y,X=((Zt=P.arrow)==null?void 0:Zt.centerOffset)!==0,[he,Ne]=S.useState();return Mn(()=>{m&&Ne(window.getComputedStyle(m).zIndex)},[m]),c.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:V?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(Fn=P.transformOrigin)==null?void 0:Fn.x,(Jt=P.transformOrigin)==null?void 0:Jt.y].join(" "),...((dr=P.hide)==null?void 0:dr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(H1,{scope:n,placedSide:j,onArrowChange:b,arrowX:D,arrowY:K,shouldHideArrow:X,children:c.jsx(He.div,{"data-side":j,"data-align":L,...y,ref:v,style:{...y.style,animation:V?void 0:"none"}})})})});tg.displayName=uc;var ng="PopperArrow",Q1={top:"bottom",right:"left",bottom:"top",left:"right"},rg=S.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=W1(ng,r),i=Q1[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(U1,{...o,ref:n,style:{...o.style,display:"block"}})})});rg.displayName=ng;function K1(e){return e!==null}var G1=e=>({name:"transformOrigin",options:e,fn(t){var x,m,h;const{placement:n,rects:r,middlewareData:o}=t,i=((x=o.arrow)==null?void 0:x.centerOffset)!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[u,d]=og(n),p={start:"0%",center:"50%",end:"100%"}[d],g=(((m=o.arrow)==null?void 0:m.x)??0)+l/2,f=(((h=o.arrow)==null?void 0:h.y)??0)+a/2;let C="",y="";return u==="bottom"?(C=i?p:`${g}px`,y=`${-a}px`):u==="top"?(C=i?p:`${g}px`,y=`${r.floating.height+a}px`):u==="right"?(C=`${-a}px`,y=i?p:`${f}px`):u==="left"&&(C=`${r.floating.width+a}px`,y=i?p:`${f}px`),{data:{x:C,y}}}});function og(e){const[t,n="center"]=e.split("-");return[t,n]}var Y1=eg,X1=tg,q1=rg,[el,dC]=Gi("Tooltip",[qm]),cc=qm(),sg="TooltipProvider",Z1=700,Jd="tooltip.open",[J1,ig]=el(sg),lg=e=>{const{__scopeTooltip:t,delayDuration:n=Z1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=S.useRef(!0),l=S.useRef(!1),a=S.useRef(0);return S.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),c.jsx(J1,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:S.useCallback(()=>{window.clearTimeout(a.current),i.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:S.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:s})};lg.displayName=sg;var ag="Tooltip",[fC,tl]=el(ag),Qa="TooltipTrigger",eS=S.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tl(Qa,n),s=ig(Qa,n),i=cc(n),l=S.useRef(null),a=Ct(t,l,o.onTriggerChange),u=S.useRef(!1),d=S.useRef(!1),p=S.useCallback(()=>u.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),c.jsx(Y1,{asChild:!0,...i,children:c.jsx(He.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:ve(e.onPointerMove,g=>{g.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:ve(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ve(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ve(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ve(e.onBlur,o.onClose),onClick:ve(e.onClick,o.onClose)})})});eS.displayName=Qa;var tS="TooltipPortal",[pC,nS]=el(tS,{forceMount:void 0}),to="TooltipContent",ug=S.forwardRef((e,t)=>{const n=nS(to,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=tl(to,e.__scopeTooltip);return c.jsx(Yu,{present:r||i.open,children:i.disableHoverableContent?c.jsx(cg,{side:o,...s,ref:t}):c.jsx(rS,{side:o,...s,ref:t})})}),rS=S.forwardRef((e,t)=>{const n=tl(to,e.__scopeTooltip),r=ig(to,e.__scopeTooltip),o=S.useRef(null),s=Ct(t,o),[i,l]=S.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:p}=r,g=S.useCallback(()=>{l(null),p(!1)},[p]),f=S.useCallback((C,y)=>{const x=C.currentTarget,m={x:C.clientX,y:C.clientY},h=aS(m,x.getBoundingClientRect()),v=uS(m,h),w=cS(y.getBoundingClientRect()),b=fS([...v,...w]);l(b),p(!0)},[p]);return S.useEffect(()=>()=>g(),[g]),S.useEffect(()=>{if(a&&d){const C=x=>f(x,d),y=x=>f(x,a);return a.addEventListener("pointerleave",C),d.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",C),d.removeEventListener("pointerleave",y)}}},[a,d,f,g]),S.useEffect(()=>{if(i){const C=y=>{const x=y.target,m={x:y.clientX,y:y.clientY},h=(a==null?void 0:a.contains(x))||(d==null?void 0:d.contains(x)),v=!dS(m,i);h?g():v&&(g(),u())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[a,d,i,u,g]),c.jsx(cg,{...e,ref:s})}),[oS,sS]=el(ag,{isInside:!1}),iS=w0("TooltipContent"),cg=S.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...l}=e,a=tl(to,n),u=cc(n),{onClose:d}=a;return S.useEffect(()=>(document.addEventListener(Jd,d),()=>document.removeEventListener(Jd,d)),[d]),S.useEffect(()=>{if(a.trigger){const p=g=>{const f=g.target;f!=null&&f.contains(a.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[a.trigger,d]),c.jsx(Gu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:c.jsxs(X1,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(iS,{children:r}),c.jsx(oS,{scope:n,isInside:!0,children:c.jsx(W0,{id:a.contentId,role:"tooltip",children:o||r})})]})})});ug.displayName=to;var dg="TooltipArrow",lS=S.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=cc(n);return sS(dg,n).isInside?null:c.jsx(q1,{...o,...r,ref:t})});lS.displayName=dg;function aS(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function uS(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function cS(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function dS(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;sr!=g>r&&n<(p-u)*(r-d)/(g-d)+u&&(o=!o)}return o}function fS(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),pS(t)}function pS(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var hS=lg,fg=ug;const mS=hS,gS=S.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(fg,{ref:r,sideOffset:t,className:ur("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));gS.displayName=fg.displayName;var nl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Kn,pn,Dr,wf,vS=(wf=class extends nl{constructor(){super();q(this,Kn);q(this,pn);q(this,Dr);F(this,Dr,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){N(this,pn)||this.setEventListener(N(this,Dr))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,pn))==null||t.call(this),F(this,pn,void 0))}setEventListener(t){var n;F(this,Dr,t),(n=N(this,pn))==null||n.call(this),F(this,pn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){N(this,Kn)!==t&&(F(this,Kn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof N(this,Kn)=="boolean"?N(this,Kn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Kn=new WeakMap,pn=new WeakMap,Dr=new WeakMap,wf),pg=new vS,yS={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},hn,Ja,Sf,xS=(Sf=class{constructor(){q(this,hn,yS);q(this,Ja,!1)}setTimeoutProvider(e){F(this,hn,e)}setTimeout(e,t){return N(this,hn).setTimeout(e,t)}clearTimeout(e){N(this,hn).clearTimeout(e)}setInterval(e,t){return N(this,hn).setInterval(e,t)}clearInterval(e){N(this,hn).clearInterval(e)}},hn=new WeakMap,Ja=new WeakMap,Sf),Ka=new xS;function wS(e){setTimeout(e,0)}var SS=typeof window>"u"||"Deno"in globalThis;function mt(){}function CS(e,t){return typeof e=="function"?e(t):e}function bS(e){return typeof e=="number"&&e>=0&&e!==1/0}function ES(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ga(e,t){return typeof e=="function"?e(t):e}function kS(e,t){return typeof e=="function"?e(t):e}function ef(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:l}=e;if(i){if(r){if(t.queryHash!==dc(i,t.options))return!1}else if(!ts(t.queryKey,i))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||s&&!s(t))}function tf(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(es(t.options.mutationKey)!==es(s))return!1}else if(!ts(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function dc(e,t){return((t==null?void 0:t.queryKeyHashFn)||es)(e)}function es(e){return JSON.stringify(e,(t,n)=>Ya(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ts(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ts(e[n],t[n])):!1}var NS=Object.prototype.hasOwnProperty;function hg(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=nf(e)&&nf(t);if(!r&&!(Ya(e)&&Ya(t)))return t;const s=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),l=i.length,a=r?new Array(l):{};let u=0;for(let d=0;d{Ka.setTimeout(t,e)})}function TS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?hg(e,t):t}function jS(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function RS(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var fc=Symbol();function mg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===fc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function AS(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var gg=(()=>{let e=()=>SS;return{isServer(){return e()},setIsServer(t){e=t}}})();function OS(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var MS=wS;function _S(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=MS;const s=l=>{t?e.push(l):o(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||i()}return a},batchCalls:l=>(...a)=>{s(()=>{l(...a)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Me=_S(),Fr,mn,$r,Cf,LS=(Cf=class extends nl{constructor(){super();q(this,Fr,!0);q(this,mn);q(this,$r);F(this,$r,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){N(this,mn)||this.setEventListener(N(this,$r))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,mn))==null||t.call(this),F(this,mn,void 0))}setEventListener(t){var n;F(this,$r,t),(n=N(this,mn))==null||n.call(this),F(this,mn,t(this.setOnline.bind(this)))}setOnline(t){N(this,Fr)!==t&&(F(this,Fr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return N(this,Fr)}},Fr=new WeakMap,mn=new WeakMap,$r=new WeakMap,Cf),ji=new LS;function IS(e){return Math.min(1e3*2**e,3e4)}function vg(e){return(e??"online")==="online"?ji.isOnline():!0}var Xa=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function yg(e){let t=!1,n=0,r;const o=OS(),s=()=>o.status!=="pending",i=y=>{var x;if(!s()){const m=new Xa(y);g(m),(x=e.onCancel)==null||x.call(e,m)}},l=()=>{t=!0},a=()=>{t=!1},u=()=>pg.isFocused()&&(e.networkMode==="always"||ji.isOnline())&&e.canRun(),d=()=>vg(e.networkMode)&&e.canRun(),p=y=>{s()||(r==null||r(),o.resolve(y))},g=y=>{s()||(r==null||r(),o.reject(y))},f=()=>new Promise(y=>{var x;r=m=>{(s()||u())&&y(m)},(x=e.onPause)==null||x.call(e)}).then(()=>{var y;r=void 0,s()||(y=e.onContinue)==null||y.call(e)}),C=()=>{if(s())return;let y;const x=n===0?e.initialPromise:void 0;try{y=x??e.fn()}catch(m){y=Promise.reject(m)}Promise.resolve(y).then(p).catch(m=>{var E;if(s())return;const h=e.retry??(gg.isServer()?0:3),v=e.retryDelay??IS,w=typeof v=="function"?v(n,m):v,b=h===!0||typeof h=="number"&&nu()?void 0:f()).then(()=>{t?g(m):C()})})};return{promise:o,status:()=>o.status,cancel:i,continue:()=>(r==null||r(),o),cancelRetry:l,continueRetry:a,canStart:d,start:()=>(d()?C():f().then(C),o)}}var Gn,bf,xg=(bf=class{constructor(){q(this,Gn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),bS(this.gcTime)&&F(this,Gn,Ka.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(gg.isServer()?1/0:5*60*1e3))}clearGcTimeout(){N(this,Gn)!==void 0&&(Ka.clearTimeout(N(this,Gn)),F(this,Gn,void 0))}},Gn=new WeakMap,bf);function zS(e){return{onFetch:(t,n)=>{var d,p,g,f,C;const r=t.options,o=(g=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:g.direction,s=((f=t.state.data)==null?void 0:f.pages)||[],i=((C=t.state.data)==null?void 0:C.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let y=!1;const x=v=>{AS(v,()=>t.signal,()=>y=!0)},m=mg(t.options,t.fetchOptions),h=async(v,w,b)=>{if(y)return Promise.reject(t.signal.reason);if(w==null&&v.pages.length)return Promise.resolve(v);const k=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:w,direction:b?"backward":"forward",meta:t.options.meta};return x($),$})(),T=await m(k),{maxPages:_}=t.options,O=b?RS:jS;return{pages:O(v.pages,T,_),pageParams:O(v.pageParams,w,_)}};if(o&&s.length){const v=o==="backward",w=v?DS:of,b={pages:s,pageParams:i},E=w(r,b);l=await h(b,E,v)}else{const v=e??s.length;do{const w=a===0?i[0]??r.initialPageParam:of(r,l);if(a>0&&w==null)break;l=await h(l,w),a++}while(a{var y,x;return(x=(y=t.options).persister)==null?void 0:x.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function of(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function DS(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Br,Yn,Ur,nt,Xn,xe,ns,qn,Ke,wg,Dt,Ef,FS=(Ef=class extends xg{constructor(t){super();q(this,Ke);q(this,Br);q(this,Yn);q(this,Ur);q(this,nt);q(this,Xn);q(this,xe);q(this,ns);q(this,qn);F(this,qn,!1),F(this,ns,t.defaultOptions),this.setOptions(t.options),this.observers=[],F(this,Xn,t.client),F(this,nt,N(this,Xn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,F(this,Yn,lf(this.options)),this.state=t.state??N(this,Yn),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return N(this,Br)}get promise(){var t;return(t=N(this,xe))==null?void 0:t.promise}setOptions(t){if(this.options={...N(this,ns),...t},t!=null&&t._type&&F(this,Br,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=lf(this.options);n.data!==void 0&&(this.setState(sf(n.data,n.dataUpdatedAt)),F(this,Yn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,nt).remove(this)}setData(t,n){const r=TS(this.state.data,t,this.options);return Ce(this,Ke,Dt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){Ce(this,Ke,Dt).call(this,{type:"setState",state:t})}cancel(t){var r,o;const n=(r=N(this,xe))==null?void 0:r.promise;return(o=N(this,xe))==null||o.cancel(t),n?n.then(mt).catch(mt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return N(this,Yn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>kS(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ga(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!ES(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,xe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,xe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),N(this,nt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(N(this,xe)&&(N(this,qn)||Ce(this,Ke,wg).call(this)?N(this,xe).cancel({revert:!0}):N(this,xe).cancelRetry()),this.scheduleGc()),N(this,nt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ce(this,Ke,Dt).call(this,{type:"invalidate"})}async fetch(t,n){var u,d,p,g,f,C,y,x,m,h,v;if(this.state.fetchStatus!=="idle"&&((u=N(this,xe))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(N(this,xe))return N(this,xe).continueRetry(),N(this,xe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(b=>b.options.queryFn);w&&this.setOptions(w.options)}const r=new AbortController,o=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(F(this,qn,!0),r.signal)})},s=()=>{const w=mg(this.options,n),E=(()=>{const k={client:N(this,Xn),queryKey:this.queryKey,meta:this.meta};return o(k),k})();return F(this,qn,!1),this.options.persister?this.options.persister(w,E,this):w(E)},l=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:N(this,Xn),state:this.state,fetchFn:s};return o(w),w})(),a=N(this,Br)==="infinite"?zS(this.options.pages):this.options.behavior;a==null||a.onFetch(l,this),F(this,Ur,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&Ce(this,Ke,Dt).call(this,{type:"fetch",meta:(p=l.fetchOptions)==null?void 0:p.meta}),F(this,xe,yg({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:w=>{w instanceof Xa&&w.revert&&this.setState({...N(this,Ur),fetchStatus:"idle"}),r.abort()},onFail:(w,b)=>{Ce(this,Ke,Dt).call(this,{type:"failed",failureCount:w,error:b})},onPause:()=>{Ce(this,Ke,Dt).call(this,{type:"pause"})},onContinue:()=>{Ce(this,Ke,Dt).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const w=await N(this,xe).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(f=(g=N(this,nt).config).onSuccess)==null||f.call(g,w,this),(y=(C=N(this,nt).config).onSettled)==null||y.call(C,w,this.state.error,this),w}catch(w){if(w instanceof Xa){if(w.silent)return N(this,xe).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw Ce(this,Ke,Dt).call(this,{type:"error",error:w}),(m=(x=N(this,nt).config).onError)==null||m.call(x,w,this),(v=(h=N(this,nt).config).onSettled)==null||v.call(h,this.state.data,w,this),w}finally{this.scheduleGc()}}},Br=new WeakMap,Yn=new WeakMap,Ur=new WeakMap,nt=new WeakMap,Xn=new WeakMap,xe=new WeakMap,ns=new WeakMap,qn=new WeakMap,Ke=new WeakSet,wg=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Dt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...$S(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...sf(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return F(this,Ur,t.manual?o:void 0),o;case"error":const s=t.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Me.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),N(this,nt).notify({query:this,type:"updated",action:t})})},Ef);function $S(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function sf(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function lf(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var rs,Pt,je,Zn,Tt,an,kf,BS=(kf=class extends xg{constructor(t){super();q(this,Tt);q(this,rs);q(this,Pt);q(this,je);q(this,Zn);F(this,rs,t.client),this.mutationId=t.mutationId,F(this,je,t.mutationCache),F(this,Pt,[]),this.state=t.state||US(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,Pt).includes(t)||(N(this,Pt).push(t),this.clearGcTimeout(),N(this,je).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){F(this,Pt,N(this,Pt).filter(n=>n!==t)),this.scheduleGc(),N(this,je).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,Pt).length||(this.state.status==="pending"?this.scheduleGc():N(this,je).remove(this))}continue(){var t;return((t=N(this,Zn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,l,a,u,d,p,g,f,C,y,x,m,h,v,w,b,E,k;const n=()=>{Ce(this,Tt,an).call(this,{type:"continue"})},r={client:N(this,rs),meta:this.options.meta,mutationKey:this.options.mutationKey};F(this,Zn,yg({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(T,_)=>{Ce(this,Tt,an).call(this,{type:"failed",failureCount:T,error:_})},onPause:()=>{Ce(this,Tt,an).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,je).canRun(this)}));const o=this.state.status==="pending",s=!N(this,Zn).canStart();try{if(o)n();else{Ce(this,Tt,an).call(this,{type:"pending",variables:t,isPaused:s}),N(this,je).config.onMutate&&await N(this,je).config.onMutate(t,this,r);const _=await((l=(i=this.options).onMutate)==null?void 0:l.call(i,t,r));_!==this.state.context&&Ce(this,Tt,an).call(this,{type:"pending",context:_,variables:t,isPaused:s})}const T=await N(this,Zn).start();return await((u=(a=N(this,je).config).onSuccess)==null?void 0:u.call(a,T,t,this.state.context,this,r)),await((p=(d=this.options).onSuccess)==null?void 0:p.call(d,T,t,this.state.context,r)),await((f=(g=N(this,je).config).onSettled)==null?void 0:f.call(g,T,null,this.state.variables,this.state.context,this,r)),await((y=(C=this.options).onSettled)==null?void 0:y.call(C,T,null,t,this.state.context,r)),Ce(this,Tt,an).call(this,{type:"success",data:T}),T}catch(T){try{await((m=(x=N(this,je).config).onError)==null?void 0:m.call(x,T,t,this.state.context,this,r))}catch(_){Promise.reject(_)}try{await((v=(h=this.options).onError)==null?void 0:v.call(h,T,t,this.state.context,r))}catch(_){Promise.reject(_)}try{await((b=(w=N(this,je).config).onSettled)==null?void 0:b.call(w,void 0,T,this.state.variables,this.state.context,this,r))}catch(_){Promise.reject(_)}try{await((k=(E=this.options).onSettled)==null?void 0:k.call(E,void 0,T,t,this.state.context,r))}catch(_){Promise.reject(_)}throw Ce(this,Tt,an).call(this,{type:"error",error:T}),T}finally{N(this,je).runNext(this)}}},rs=new WeakMap,Pt=new WeakMap,je=new WeakMap,Zn=new WeakMap,Tt=new WeakSet,an=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Me.batch(()=>{N(this,Pt).forEach(r=>{r.onMutationUpdate(t)}),N(this,je).notify({mutation:this,type:"updated",action:t})})},kf);function US(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Bt,gt,os,Nf,VS=(Nf=class extends nl{constructor(t={}){super();q(this,Bt);q(this,gt);q(this,os);this.config=t,F(this,Bt,new Set),F(this,gt,new Map),F(this,os,0)}build(t,n,r){const o=new BS({client:t,mutationCache:this,mutationId:++gs(this,os)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){N(this,Bt).add(t);const n=Ds(t);if(typeof n=="string"){const r=N(this,gt).get(n);r?r.push(t):N(this,gt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(N(this,Bt).delete(t)){const n=Ds(t);if(typeof n=="string"){const r=N(this,gt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&N(this,gt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ds(t);if(typeof n=="string"){const r=N(this,gt).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Ds(t);if(typeof n=="string"){const o=(r=N(this,gt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Me.batch(()=>{N(this,Bt).forEach(t=>{this.notify({type:"removed",mutation:t})}),N(this,Bt).clear(),N(this,gt).clear()})}getAll(){return Array.from(N(this,Bt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>tf(n,r))}findAll(t={}){return this.getAll().filter(n=>tf(t,n))}notify(t){Me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Me.batch(()=>Promise.all(t.map(n=>n.continue().catch(mt))))}},Bt=new WeakMap,gt=new WeakMap,os=new WeakMap,Nf);function Ds(e){var t;return(t=e.options.scope)==null?void 0:t.id}var jt,Pf,HS=(Pf=class extends nl{constructor(t={}){super();q(this,jt);this.config=t,F(this,jt,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??dc(o,n);let i=this.get(s);return i||(i=new FS({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){N(this,jt).has(t.queryHash)||(N(this,jt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=N(this,jt).get(t.queryHash);n&&(t.destroy(),n===t&&N(this,jt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Me.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,jt).get(t)}getAll(){return[...N(this,jt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ef(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ef(t,r)):n}notify(t){Me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Me.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Me.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},jt=new WeakMap,Pf),de,gn,vn,Vr,Hr,yn,Wr,Qr,Tf,WS=(Tf=class{constructor(e={}){q(this,de);q(this,gn);q(this,vn);q(this,Vr);q(this,Hr);q(this,yn);q(this,Wr);q(this,Qr);F(this,de,e.queryCache||new HS),F(this,gn,e.mutationCache||new VS),F(this,vn,e.defaultOptions||{}),F(this,Vr,new Map),F(this,Hr,new Map),F(this,yn,0)}mount(){gs(this,yn)._++,N(this,yn)===1&&(F(this,Wr,pg.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,de).onFocus())})),F(this,Qr,ji.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,de).onOnline())})))}unmount(){var e,t;gs(this,yn)._--,N(this,yn)===0&&((e=N(this,Wr))==null||e.call(this),F(this,Wr,void 0),(t=N(this,Qr))==null||t.call(this),F(this,Qr,void 0))}isFetching(e){return N(this,de).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,gn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,de).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=N(this,de).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ga(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return N(this,de).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=N(this,de).get(r.queryHash),s=o==null?void 0:o.state.data,i=CS(t,s);if(i!==void 0)return N(this,de).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Me.batch(()=>N(this,de).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,de).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=N(this,de);Me.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=N(this,de);return Me.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Me.batch(()=>N(this,de).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(mt).catch(mt)}invalidateQueries(e,t={}){return Me.batch(()=>(N(this,de).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Me.batch(()=>N(this,de).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(mt)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(mt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=N(this,de).build(this,t);return n.isStaleByTime(Ga(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(mt).catch(mt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(mt).catch(mt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return ji.isOnline()?N(this,gn).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,de)}getMutationCache(){return N(this,gn)}getDefaultOptions(){return N(this,vn)}setDefaultOptions(e){F(this,vn,e)}setQueryDefaults(e,t){N(this,Vr).set(es(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,Vr).values()],n={};return t.forEach(r=>{ts(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){N(this,Hr).set(es(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,Hr).values()],n={};return t.forEach(r=>{ts(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...N(this,vn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=dc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===fc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...N(this,vn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,de).clear(),N(this,gn).clear()}},de=new WeakMap,gn=new WeakMap,vn=new WeakMap,Vr=new WeakMap,Hr=new WeakMap,yn=new WeakMap,Wr=new WeakMap,Qr=new WeakMap,Tf),QS=S.createContext(void 0),KS=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(QS.Provider,{value:e,children:t}));/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Sg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function YS(){return Math.random().toString(36).substr(2,8)}function uf(e,t){return{usr:e.state,key:e.key,idx:t}}function qa(e,t,n,r){return n===void 0&&(n=null),Ri({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?rl(t):t,{state:n,key:t&&t.key||r||YS()})}function Cg(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function rl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function XS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,l=Sn.Pop,a=null,u=d();u==null&&(u=0,i.replaceState(Ri({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function p(){l=Sn.Pop;let x=d(),m=x==null?null:x-u;u=x,a&&a({action:l,location:y.location,delta:m})}function g(x,m){l=Sn.Push;let h=qa(y.location,x,m);u=d()+1;let v=uf(h,u),w=y.createHref(h);try{i.pushState(v,"",w)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;o.location.assign(w)}s&&a&&a({action:l,location:y.location,delta:1})}function f(x,m){l=Sn.Replace;let h=qa(y.location,x,m);u=d();let v=uf(h,u),w=y.createHref(h);i.replaceState(v,"",w),s&&a&&a({action:l,location:y.location,delta:0})}function C(x){let m=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof x=="string"?x:Cg(x);return h=h.replace(/ $/,"%20"),Ve(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let y={get action(){return l},get location(){return e(o,i)},listen(x){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(af,p),a=x,()=>{o.removeEventListener(af,p),a=null}},createHref(x){return t(o,x)},createURL:C,encodeLocation(x){let m=C(x);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:g,replace:f,go(x){return i.go(x)}};return y}var cf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(cf||(cf={}));function qS(e,t,n){return n===void 0&&(n="/"),ZS(e,t,n)}function ZS(e,t,n,r){let o=typeof t=="string"?rl(t):t,s=kg(o.pathname||"/",n);if(s==null)return null;let i=bg(e);JS(i);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};a.relativePath.startsWith("/")&&(Ve(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=zr([r,a.relativePath]),d=n.concat(a);s.children&&s.children.length>0&&(Ve(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),bg(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:i2(u,s.index),routesMeta:d})};return e.forEach((s,i)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))o(s,i);else for(let a of Eg(s.path))o(s,i,a)}),t}function Eg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=Eg(r.join("/")),l=[];return l.push(...i.map(a=>a===""?s:[s,a].join("/"))),o&&l.push(...i),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function JS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:l2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const e2=/^:[\w-]+$/,t2=3,n2=2,r2=1,o2=10,s2=-2,df=e=>e==="*";function i2(e,t){let n=e.split("/"),r=n.length;return n.some(df)&&(r+=s2),t&&(r+=n2),n.filter(o=>!df(o)).reduce((o,s)=>o+(e2.test(s)?t2:s===""?r2:o2),r)}function l2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function a2(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let l=0;l{let{paramName:g,isOptional:f}=d;if(g==="*"){let y=l[p]||"";i=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const C=l[p];return f&&!C?u[g]=void 0:u[g]=(C||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:i,pattern:e}}function c2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Sg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function d2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Sg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function kg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const zr=e=>e.join("/").replace(/\/\/+/g,"/"),f2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function p2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ng=["post","put","patch","delete"];new Set(Ng);const h2=["get",...Ng];new Set(h2);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ai(){return Ai=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},x,{params:Object.assign({},l,x.params),pathname:zr([a,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?a:zr([a,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r);return t&&y?S.createElement(ol.Provider,{value:{location:Ai({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Sn.Pop}},y):y}function x2(){let e=P2(),t=p2(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:o},n):null,null)}const w2=S.createElement(x2,null);class S2 extends S.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?S.createElement(sl.Provider,{value:this.props.routeContext},S.createElement(Tg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function C2(e){let{routeContext:t,match:n,children:r}=e,o=S.useContext(m2);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(sl.Provider,{value:t},r)}function b2(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let d=i.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);d>=0||Ve(!1),i=i.slice(0,Math.min(i.length,d+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,p,g)=>{let f,C=!1,y=null,x=null;n&&(f=l&&p.route.id?l[p.route.id]:void 0,y=p.route.errorElement||w2,a&&(u<0&&g===0?(T2("route-fallback"),C=!0,x=null):u===g&&(C=!0,x=p.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,g+1)),h=()=>{let v;return f?v=y:C?v=x:p.route.Component?v=S.createElement(p.route.Component,null):p.route.element?v=p.route.element:v=d,S.createElement(C2,{match:p,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:v})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?S.createElement(S2,{location:n.location,revalidation:n.revalidation,component:y,error:f,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var Rg=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Rg||{});function E2(e){let t=S.useContext(g2);return t||Ve(!1),t}function k2(e){let t=S.useContext(sl);return t||Ve(!1),t}function N2(e){let t=k2(),n=t.matches[t.matches.length-1];return n.route.id||Ve(!1),n.route.id}function P2(){var e;let t=S.useContext(Tg),n=E2(Rg.UseRouteError),r=N2();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}const ff={};function T2(e,t,n){ff[e]||(ff[e]=!0)}function j2(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function ei(e){Ve(!1)}function R2(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Sn.Pop,navigator:s,static:i=!1,future:l}=e;pc()&&Ve(!1);let a=t.replace(/^\/*/,"/"),u=S.useMemo(()=>({basename:a,navigator:s,static:i,future:Ai({v7_relativeSplatPath:!1},l)}),[a,l,s,i]);typeof r=="string"&&(r=rl(r));let{pathname:d="/",search:p="",hash:g="",state:f=null,key:C="default"}=r,y=S.useMemo(()=>{let x=kg(d,a);return x==null?null:{location:{pathname:x,search:p,hash:g,state:f,key:C},navigationType:o}},[a,d,p,g,f,C,o]);return y==null?null:S.createElement(Pg.Provider,{value:u},S.createElement(ol.Provider,{children:n,value:y}))}function A2(e){let{children:t,location:n}=e;return v2(Za(t),n)}new Promise(()=>{});function Za(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(r,o)=>{if(!S.isValidElement(r))return;let s=[...t,o];if(r.type===S.Fragment){n.push.apply(n,Za(r.props.children,s));return}r.type!==ei&&Ve(!1),!r.props.index||!r.props.children||Ve(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Za(r.props.children,s)),n.push(i)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */const O2="6";try{window.__reactRouterVersion=O2}catch{}const M2="startTransition",pf=$f[M2];function _2(e){let{basename:t,children:n,future:r,window:o}=e,s=S.useRef();s.current==null&&(s.current=GS({window:o,v5Compat:!0}));let i=s.current,[l,a]=S.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=S.useCallback(p=>{u&&pf?pf(()=>a(p)):a(p)},[a,u]);return S.useLayoutEffect(()=>i.listen(d),[i,d]),S.useEffect(()=>j2(r),[r]),S.createElement(R2,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i,future:r})}var hf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(hf||(hf={}));var mf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(mf||(mf={}));const gf=[{label:"Home",labelAr:"الرئيسية",href:"/"},{label:"About Us",labelAr:"من نحن",href:"/about"},{label:"Services",labelAr:"الخدمات",href:"/services",active:!0},{label:"Investor Relations",labelAr:"علاقات المستثمرين",href:"/investor-relations"},{label:"Subsidiaries",labelAr:"الشركات التابعة",href:"/subsidiaries"},{label:"Contact",labelAr:"اتصل بنا",href:"/contact"}],L2=()=>{const[e,t]=A.useState(!1);return c.jsxs("header",{className:"w-full bg-white border-b border-border sticky top-0 z-50",children:[c.jsxs("div",{className:"w-full py-1.5 px-4 flex items-center justify-between text-xs",style:{background:"hsl(210 73% 14%)",color:"hsl(43 55% 52%)"},children:[c.jsx("span",{className:"font-english tracking-wide",children:"CMA License No. XXX  |  CBK Regulated  |  Shari'a Certified"}),c.jsx("span",{className:"font-arabic",children:"شركة المنزا للاستثمار ش.م.ك.ع"})]}),c.jsxs("nav",{className:"max-w-[1280px] mx-auto px-6 py-3 flex items-center justify-between",children:[c.jsxs("div",{className:"flex flex-col leading-tight",children:[c.jsx("span",{className:"font-english font-bold text-xl tracking-tight",style:{color:"hsl(210 73% 14%)"},children:"ALMANZA"}),c.jsx("span",{className:"font-arabic text-sm font-medium",style:{color:"hsl(43 55% 52%)"},children:"المنزا للاستثمار"})]}),c.jsx("div",{className:"hidden lg:flex items-center gap-8",children:gf.map(n=>c.jsx("a",{href:n.href,className:`nav-link font-english text-sm font-medium ${n.active?"font-semibold":""}`,style:n.active?{color:"hsl(43 55% 52%)",borderBottom:"2px solid hsl(43 55% 52%)",paddingBottom:"2px"}:{},children:n.label},n.label))}),c.jsx("div",{className:"hidden lg:flex items-center gap-3",children:c.jsx("a",{href:"/contact/schedule-consultation",className:"btn-gold text-xs px-4 py-2",children:"Schedule Consultation"})}),c.jsx("button",{onClick:()=>t(!e),className:"lg:hidden p-2","aria-label":"Toggle menu",children:e?c.jsx(Nm,{size:20}):c.jsx(mx,{size:20})})]}),e&&c.jsx("div",{className:"lg:hidden border-t border-border bg-white px-6 py-4 flex flex-col gap-4",children:gf.map(n=>c.jsxs("a",{href:n.href,className:"nav-link font-english text-sm py-1 flex items-center justify-between",children:[c.jsx("span",{children:n.label}),c.jsx($a,{size:14})]},n.label))})]})},I2=[{heading:"Services",headingAr:"الخدمات",links:[{label:"Asset Management",labelAr:"إدارة الأصول",href:"/services/asset-management"},{label:"Private Equity",labelAr:"الأسهم الخاصة",href:"/services/private-equity"},{label:"Real Estate",labelAr:"العقارات",href:"/services/real-estate"},{label:"Islamic Finance",labelAr:"التمويل الإسلامي",href:"/services/islamic-finance"}]},{heading:"Company",headingAr:"الشركة",links:[{label:"About Us",labelAr:"من نحن",href:"/about"},{label:"Subsidiaries",labelAr:"الشركات التابعة",href:"/subsidiaries"},{label:"Investor Relations",labelAr:"علاقات المستثمرين",href:"/investor-relations"},{label:"Annual Report",labelAr:"التقرير السنوي",href:"/annual-report"}]},{heading:"Regulatory",headingAr:"التنظيم",links:[{label:"CMA Disclosures",labelAr:"إفصاحات هيئة أسواق المال",href:"/regulatory/cma"},{label:"Shari'a Board",labelAr:"هيئة الرقابة الشرعية",href:"/regulatory/sharia"},{label:"Governance",labelAr:"الحوكمة",href:"/regulatory/governance"},{label:"Privacy Policy",labelAr:"سياسة الخصوصية",href:"/legal/privacy"}]}],z2=()=>c.jsxs("footer",{className:"font-english",style:{background:"hsl(210 73% 14%)",color:"hsl(0 0% 100%)"},children:[c.jsx("div",{className:"section-divider-gold"}),c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6 pt-12 pb-8",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-8 mb-12",children:[c.jsxs("div",{className:"lg:col-span-2",children:[c.jsxs("div",{className:"mb-4",children:[c.jsx("div",{className:"font-bold text-2xl tracking-tight text-white",children:"ALMANZA"}),c.jsx("div",{className:"font-arabic text-lg mt-0.5",style:{color:"hsl(43 55% 52%)"},children:"المنزا للاستثمار"})]}),c.jsx("p",{className:"text-sm leading-relaxed mb-4",style:{color:"hsl(215 20% 70%)"},children:"Almanza Investment Company KSCC is a Kuwaiti Shareholding Company, incorporated in Kuwait in 1998. Licensed by the Capital Markets Authority (CMA) and regulated by the Central Bank of Kuwait (CBK)."}),c.jsx("p",{className:"font-arabic text-sm leading-relaxed mb-6",style:{color:"hsl(215 20% 65%)"},children:"شركة المنزا للاستثمار ش.م.ك.ع – مرخصة من هيئة أسواق المال ومنظمة من قبل بنك الكويت المركزي"}),c.jsxs("div",{className:"flex flex-wrap gap-2",children:[c.jsx("span",{className:"reg-badge text-xs",style:{borderColor:"hsl(43 55% 52%)",color:"hsl(43 55% 52%)"},children:"CMA Licensed"}),c.jsx("span",{className:"reg-badge text-xs",style:{borderColor:"hsl(43 55% 52%)",color:"hsl(43 55% 52%)"},children:"CBK Regulated"}),c.jsx("span",{className:"reg-badge text-xs",style:{borderColor:"hsl(43 55% 52%)",color:"hsl(43 55% 52%)"},children:"Shari'a Certified"})]})]}),I2.map(e=>c.jsxs("div",{children:[c.jsx("div",{className:"text-xs font-bold uppercase tracking-widest mb-4",style:{color:"hsl(43 55% 52%)"},children:e.heading}),c.jsx("ul",{className:"space-y-2.5",children:e.links.map(t=>c.jsx("li",{children:c.jsx("a",{href:t.href,className:"text-sm transition-colors duration-200 hover:text-white",style:{color:"hsl(215 20% 70%)"},children:t.label})},t.label))})]},e.heading))]}),c.jsxs("div",{className:"border-t pt-6 mb-4",style:{borderColor:"hsl(210 60% 22%)"},children:[c.jsxs("p",{className:"text-xs leading-relaxed mb-2",style:{color:"hsl(215 20% 55%)"},children:[c.jsx("strong",{style:{color:"hsl(215 20% 70%)"},children:"Regulatory Disclaimer:"})," Almanza Investment Company KSCC is licensed by the Capital Markets Authority of Kuwait (License No. XXX) pursuant to CMA Law No. 7/2010, and regulated by the Central Bank of Kuwait where applicable. All investment products are Shari'a-compliant as certified by the Almanza Shari'a Supervisory Board. Past performance is not indicative of future results. Investments carry risk and may result in loss of principal."]}),c.jsx("p",{className:"font-arabic text-xs leading-relaxed",style:{color:"hsl(215 20% 50%)"},children:"إخلاء المسؤولية: شركة المنزا للاستثمار ش.م.ك.ع مرخصة من هيئة أسواق المال بموجب القانون رقم 7/2010. جميع الخدمات الاستثمارية متوافقة مع أحكام الشريعة الإسلامية. الأداء السابق لا يعني ضمان العوائد المستقبلية."})]}),c.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-2 border-t pt-4",style:{borderColor:"hsl(210 60% 22%)"},children:[c.jsx("p",{className:"text-xs",style:{color:"hsl(215 20% 45%)"},children:"© 2026 Almanza Investment Company KSCC. All rights reserved."}),c.jsx("p",{className:"font-arabic text-xs",style:{color:"hsl(215 20% 45%)"},children:"جميع الحقوق محفوظة لشركة المنزا للاستثمار ش.م.ك.ع © 2026"})]})]})]}),D2="/assets/hero-asset-management-WQ1OnV24.jpg",F2=()=>c.jsxs("section",{className:"relative w-full overflow-hidden",style:{minHeight:"520px"},children:[c.jsx("img",{src:D2,alt:"Almanza Investment – Asset Management",className:"absolute inset-0 w-full h-full object-cover object-center"}),c.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(105deg, hsl(210 73% 8% / 0.92) 0%, hsl(210 73% 14% / 0.78) 60%, hsl(210 73% 14% / 0.55) 100%)"}}),c.jsxs("div",{className:"relative z-10 max-w-[1280px] mx-auto px-6 py-16 flex flex-col justify-end h-full",style:{minHeight:"520px"},children:[c.jsxs("nav",{className:"flex items-center gap-1.5 mb-6 text-xs",style:{color:"hsl(43 55% 65%)"},children:[c.jsx("a",{href:"/",className:"hover:text-white transition-colors",children:"Home"}),c.jsx($a,{size:12}),c.jsx("a",{href:"/services",className:"hover:text-white transition-colors",children:"Services"}),c.jsx($a,{size:12}),c.jsx("span",{className:"text-white",children:"Asset Management"})]}),c.jsxs("div",{className:"mb-6",children:[c.jsxs("div",{className:"flex items-end gap-4 flex-wrap mb-2",children:[c.jsx("h1",{className:"font-english font-bold text-4xl lg:text-5xl text-white leading-tight tracking-tight",children:"Asset Management"}),c.jsx("span",{className:"font-arabic font-semibold text-2xl lg:text-3xl",style:{color:"hsl(43 55% 52%)"},children:"إدارة الأصول"})]}),c.jsx("p",{className:"font-english text-lg font-medium mt-3",style:{color:"hsl(43 55% 65%)"},children:"Your Preferred Partner for Asset Management in the GCC"}),c.jsx("p",{className:"font-arabic text-base mt-1",style:{color:"hsl(43 55% 55%)"},children:"شريكك المفضل في إدارة الأصول في منطقة الخليج العربي"})]}),c.jsx("div",{className:"max-w-3xl p-4 rounded-sm border-l-2",style:{background:"hsl(210 73% 10% / 0.85)",borderColor:"hsl(43 55% 52%)"},children:c.jsxs("p",{className:"font-english text-xs leading-relaxed",style:{color:"hsl(215 20% 75%)"},children:["Almanza Investment Company KSCC is a Kuwaiti Shareholding Company, incorporated in the State of Kuwait in ",c.jsx("strong",{className:"text-white",children:"1998"}),". Licensed by the ",c.jsx("strong",{className:"text-white",children:"Capital Markets Authority (CMA) of Kuwait"})," (License No. XXX) and regulated by the ",c.jsx("strong",{className:"text-white",children:"Central Bank of Kuwait (CBK)"}),", in accordance with the Kuwait Ministry of Commerce and Industry. All asset management services are ",c.jsx("strong",{style:{color:"hsl(43 55% 65%)"},children:"Shari'a-compliant"})," as certified by our Shari'a Supervisory Board."]})}),c.jsx("div",{className:"mt-8 grid grid-cols-2 md:grid-cols-4 gap-0 max-w-3xl",children:[{label:"Assets Under Management",value:"$47.2B"},{label:"Years in the GCC",value:"26+"},{label:"Investment Strategies",value:"14"},{label:"Client Mandates",value:"380+"}].map((e,t)=>c.jsxs("div",{className:"pr-6 py-3 border-r last:border-r-0",style:{borderColor:"hsl(210 60% 25%)"},children:[c.jsx("div",{className:"font-english font-bold text-xl text-white",children:e.value}),c.jsx("div",{className:"font-english text-xs mt-0.5",style:{color:"hsl(215 20% 60%)"},children:e.label})]},t))})]})]}),$2=()=>c.jsx("section",{className:"py-16",style:{background:"hsl(215 28% 97%)"},children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6",children:[c.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8 mb-10",children:[{label:"Asset Management Since",labelAr:"إدارة الأصول منذ",value:"1998"},{label:"Assets Under Management",labelAr:"الأصول تحت الإدارة",value:"$47.2B"},{label:"Ownership Structure",labelAr:"هيكل الملكية",value:"KSCC"}].map((e,t)=>c.jsxs("div",{className:"metric-card bg-white",style:{borderLeftColor:"hsl(43 55% 52%)"},children:[c.jsx("div",{className:"font-english font-bold text-3xl mb-1",style:{color:"hsl(43 55% 52%)"},children:e.value}),c.jsx("div",{className:"font-english text-sm font-semibold mb-0.5",style:{color:"hsl(210 73% 14%)"},children:e.label}),c.jsx("div",{className:"font-arabic text-sm",style:{color:"hsl(210 20% 50%)"},children:e.labelAr})]},t))}),c.jsxs("div",{className:"max-w-4xl",children:[c.jsx("p",{className:"font-english text-base leading-relaxed mb-3",style:{color:"hsl(210 35% 25%)",lineHeight:"1.8"},children:"Al Amal's Asset Management team delivers active management across public and private markets, leveraging deep GCC market knowledge and global research capabilities developed over more than two decades. Our Shari'a-compliant strategies are designed for long-term capital appreciation and risk-adjusted returns, fostering economic growth and diversification across the region."}),c.jsx("p",{className:"font-arabic text-base leading-relaxed",style:{color:"hsl(210 20% 50%)",lineHeight:"2"},children:"يقدم فريق إدارة الأصول في المنزا إدارة نشطة عبر الأسواق العامة والخاصة، مع التركيز على الاستثمارات المتوافقة مع أحكام الشريعة الإسلامية وتحقيق عوائد معدّلة حسب المخاطر على المدى البعيد."})]})]})}),B2=[{icon:Ju,title:"GCC & International Equities",titleAr:"أسهم الخليج والأسواق الدولية",description:"Active management of listed equities across developed and emerging markets, with a concentrated focus on GCC growth stories, blue-chip regional names, and select international positions."},{icon:ec,title:"Fixed Income & Sukuk",titleAr:"الدخل الثابت والصكوك",description:"Investment-grade and high-yield sukuk, government bonds, and corporate debt instruments — all structured to be Shari'a-compliant and consistent with our yield and duration targets."},{icon:km,title:"Alternatives",titleAr:"الاستثمارات البديلة",description:"Private equity, venture capital, infrastructure assets, and private credit — accessed both directly and through co-investment structures and GCC-focused funds."},{icon:bm,title:"Real Estate",titleAr:"العقارات",description:"Direct property investments and real estate funds across commercial, residential, and logistics assets in Kuwait and key GCC markets, generating stable income and capital appreciation."}],U2=()=>c.jsx("section",{className:"py-16 bg-white",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6",children:[c.jsxs("div",{className:"mb-10 pb-6 border-b border-border",children:[c.jsxs("div",{className:"flex items-end gap-4 flex-wrap",children:[c.jsx("h2",{className:"font-english font-bold text-2xl lg:text-3xl",style:{color:"hsl(210 73% 14%)"},children:"GCC Principal Asset Management"}),c.jsx("span",{className:"font-arabic text-xl",style:{color:"hsl(43 55% 52%)"},children:"إدارة الأصول الرئيسية في دول مجلس التعاون"})]}),c.jsx("p",{className:"font-english text-sm mt-3 max-w-2xl",style:{color:"hsl(210 20% 50%)"},children:"We invest in a diversified portfolio of GCC stocks, sukuk, and principal investments as well as GCC-focused and GCC-domicile funds."})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-0 border border-border",children:B2.map((e,t)=>{const n=e.icon;return c.jsxs("div",{className:"p-6 border-r last:border-r-0 border-border hover:bg-slate-50 transition-colors duration-200",children:[c.jsx("div",{className:"w-10 h-10 rounded-sm flex items-center justify-center mb-4",style:{background:"hsl(210 73% 14%)"},children:c.jsx(n,{size:18,color:"hsl(43 55% 52%)"})}),c.jsx("h3",{className:"font-english font-semibold text-sm mb-1",style:{color:"hsl(210 73% 14%)"},children:e.title}),c.jsx("p",{className:"font-arabic text-xs mb-3",style:{color:"hsl(43 55% 52%)"},children:e.titleAr}),c.jsx("p",{className:"font-english text-xs leading-relaxed",style:{color:"hsl(210 20% 50%)",lineHeight:"1.7"},children:e.description})]},t)})})]})}),V2=[{num:"01",title:"Long-Term Orientation",titleAr:"التوجه طويل الأمد",body:"We invest with a 5–10 year horizon, avoiding short-term market noise. Our portfolio construction is designed to compound wealth steadily across market cycles."},{num:"02",title:"Fundamental Research",titleAr:"البحث الأساسي",body:"Bottom-up, research-driven security selection combined with rigorous top-down macroeconomic and sector analysis across GCC and global markets."},{num:"03",title:"Shari'a Integration",titleAr:"الامتثال الشرعي المدمج",body:"Every investment is screened for Shari'a compliance before inclusion in any portfolio. Our Shari'a Supervisory Board provides ongoing oversight and annual certification."}],H2=()=>c.jsx("section",{className:"py-16",style:{background:"hsl(215 28% 97%)"},children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("h2",{className:"font-english font-bold text-2xl lg:text-3xl mb-1",style:{color:"hsl(210 73% 14%)"},children:"Investment Philosophy"}),c.jsx("span",{className:"font-arabic text-lg",style:{color:"hsl(43 55% 52%)"},children:"فلسفة الاستثمار"})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:V2.map(e=>c.jsxs("div",{className:"bg-white p-8",style:{borderTop:"3px solid hsl(43 55% 52%)"},children:[c.jsx("div",{className:"font-english font-bold text-4xl mb-4",style:{color:"hsl(43 55% 52% / 0.25)"},children:e.num}),c.jsx("h3",{className:"font-english font-semibold text-base mb-1",style:{color:"hsl(210 73% 14%)"},children:e.title}),c.jsx("p",{className:"font-arabic text-sm mb-4",style:{color:"hsl(43 55% 52%)"},children:e.titleAr}),c.jsx("p",{className:"font-english text-sm leading-relaxed",style:{color:"hsl(210 20% 50%)",lineHeight:"1.75"},children:e.body})]},e.num))})]})}),vf=[{step:"01",label:"Research & Idea Generation",labelAr:"البحث وتوليد الأفكار",desc:"Proprietary research, sector coverage, macro views, Shari'a screening."},{step:"02",label:"Portfolio Construction",labelAr:"بناء المحفظة",desc:"Optimised allocation across asset classes, geographies, and strategies."},{step:"03",label:"Risk Management",labelAr:"إدارة المخاطر",desc:"Quantitative risk models, stress testing, drawdown controls, compliance checks."},{step:"04",label:"Performance Monitoring",labelAr:"متابعة الأداء",desc:"Regular reporting, benchmark comparison, client communication, and review."}],W2=()=>c.jsx("section",{className:"py-16 bg-white",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("h2",{className:"font-english font-bold text-2xl lg:text-3xl mb-1",style:{color:"hsl(210 73% 14%)"},children:"Investment Process"}),c.jsx("span",{className:"font-arabic text-lg",style:{color:"hsl(43 55% 52%)"},children:"منهجية الاستثمار"})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-0 relative",children:vf.map((e,t)=>c.jsxs("div",{className:"relative p-6 border border-border",style:t>0?{borderLeft:"none"}:{},children:[tc.jsx("section",{className:"py-16",style:{background:"hsl(215 28% 97%)"},children:c.jsx("div",{className:"max-w-[1280px] mx-auto px-6",children:c.jsxs("div",{className:"bg-white p-8 lg:p-10",style:{borderTop:"3px solid hsl(43 55% 52%)"},children:[c.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[c.jsx(ec,{size:24,style:{color:"hsl(43 55% 52%)"}}),c.jsxs("div",{children:[c.jsx("h2",{className:"font-english font-bold text-xl",style:{color:"hsl(210 73% 14%)"},children:"Shari'a-Compliant Asset Management"}),c.jsx("p",{className:"font-arabic text-base",style:{color:"hsl(43 55% 52%)"},children:"إدارة الأصول المتوافقة مع الشريعة الإسلامية"})]})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8",children:[c.jsxs("div",{children:[c.jsxs("p",{className:"font-english text-sm leading-relaxed mb-4",style:{color:"hsl(210 35% 30%)",lineHeight:"1.85"},children:["All portfolios are managed in accordance with the provisions of Islamic Shari'a, overseen by our internal ",c.jsx("strong",{children:"Shari'a Supervisory Board"}),", in accordance with the regulations and instructions of the Capital Markets Authority (CMA), Central Bank of Kuwait (CBK), and Kuwait Ministry of Commerce and Industry."]}),c.jsxs("p",{className:"font-english text-sm leading-relaxed",style:{color:"hsl(210 35% 30%)",lineHeight:"1.85"},children:["We prohibit interest-based (",c.jsx("em",{children:"riba"}),") transactions, speculative (",c.jsx("em",{children:"gharar"}),") activities, and investments in non-compliant sectors including alcohol, gambling, and conventional financial services."]})]}),c.jsx("div",{children:c.jsx("p",{className:"font-arabic text-sm leading-relaxed",style:{color:"hsl(210 20% 50%)",lineHeight:"2.2",direction:"rtl",textAlign:"right"},children:"تُدار جميع المحافظ الاستثمارية وفقاً لأحكام الشريعة الإسلامية، وتحت إشراف هيئة الرقابة الشرعية الداخلية في الشركة، بما يتوافق مع تعليمات هيئة أسواق المال وبنك الكويت المركزي ووزارة التجارة والصناعة. يُحظر الاستثمار في الأدوات القائمة على الفائدة أو المضاربات المحرمة أو القطاعات غير المتوافقة."})})]}),c.jsx("div",{className:"flex flex-wrap gap-2",children:["Shari'a Supervisory Board","Portfolio Screening","Annual Compliance Certificate","Prohibited Sectors Exclusion","Purification Protocol"].map(e=>c.jsx("span",{className:"reg-badge",children:e},e))})]})})}),K2=[{en:"Work & Spread Knowledge",ar:"العمل ونشر المعرفة",icon:Cm},{en:"Persevere",ar:"المثابرة",icon:km},{en:"Act with Integrity",ar:"العمل بنزاهة",icon:ec},{en:"Maintain Ethics",ar:"الحفاظ على الأخلاق",icon:Sm},{en:"Invest in People",ar:"الاستثمار في الأشخاص",icon:gx}],G2=()=>c.jsx("section",{className:"py-16 bg-white",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("h2",{className:"font-english font-bold text-2xl lg:text-3xl mb-1",style:{color:"hsl(210 73% 14%)"},children:"Core Values"}),c.jsx("span",{className:"font-arabic text-lg",style:{color:"hsl(43 55% 52%)"},children:"قيمنا الأساسية"})]}),c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-0 border border-border",children:K2.map((e,t)=>{const n=e.icon;return c.jsxs("div",{className:"value-card p-6 border-r last:border-r-0 border-border hover:bg-slate-50 transition-colors",children:[c.jsx(n,{size:24,className:"mx-auto mb-3",style:{color:"hsl(43 55% 52%)"}}),c.jsx("h3",{className:"font-english font-semibold text-sm mb-1",style:{color:"hsl(210 73% 14%)"},children:e.en}),c.jsx("p",{className:"font-arabic text-sm",style:{color:"hsl(43 55% 52%)"},children:e.ar})]},t)})})]})}),Y2=[{segment:"Institutional Investors",segmentAr:"المستثمرون المؤسسيون",mandate:"Pension funds, endowments, insurance companies, sovereign wealth funds – seeking long-term, risk-adjusted returns with full regulatory and Shari'a compliance."},{segment:"Family Offices",segmentAr:"مكاتب العائلات",mandate:"Multi-generational wealth structuring, governance frameworks, succession planning, and consolidated reporting across asset classes."},{segment:"High-Net-Worth Individuals",segmentAr:"الأفراد ذوو الثروات العالية",mandate:"Individuals and families with investable assets exceeding $5M seeking bespoke Shari'a-compliant mandates and dedicated portfolio management."},{segment:"Corporates",segmentAr:"الشركات",mandate:"Treasury management, employee retirement plans, and short-to-medium term liquidity solutions aligned with corporate governance and Shari'a requirements."}],X2=()=>c.jsx("section",{className:"py-16",style:{background:"hsl(215 28% 97%)"},children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("h2",{className:"font-english font-bold text-2xl lg:text-3xl mb-1",style:{color:"hsl(210 73% 14%)"},children:"Target Client Segments"}),c.jsx("span",{className:"font-arabic text-lg",style:{color:"hsl(43 55% 52%)"},children:"شرائح العملاء المستهدفين"})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:Y2.map((e,t)=>c.jsxs("div",{className:"bg-white p-6 flex gap-4",children:[c.jsx("div",{className:"w-1 flex-shrink-0 rounded-full",style:{background:"hsl(43 55% 52%)"}}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-english font-semibold text-sm mb-0.5",style:{color:"hsl(210 73% 14%)"},children:e.segment}),c.jsx("p",{className:"font-arabic text-xs mb-3",style:{color:"hsl(43 55% 52%)"},children:e.segmentAr}),c.jsx("p",{className:"font-english text-xs leading-relaxed",style:{color:"hsl(210 20% 50%)",lineHeight:"1.75"},children:e.mandate})]})]},t))})]})}),q2=[{label:"5-Year Annualised Return",labelSub:"GCC Equity Strategy",value:"12.4%",note:"vs. benchmark 8.1%"},{label:"Sukuk Portfolio Yield",labelSub:"Investment-Grade Sukuk Portfolio",value:"5.8%",note:"Shari'a-compliant, CMA approved"},{label:"Total Assets Under Management",labelSub:"Across all mandates",value:"$47.2B",note:"As at 31 December 2025"}],Z2=()=>c.jsx("section",{className:"py-16 bg-white",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("h2",{className:"font-english font-bold text-2xl lg:text-3xl mb-1",style:{color:"hsl(210 73% 14%)"},children:"Our Success Stories"}),c.jsx("span",{className:"font-arabic text-lg",style:{color:"hsl(43 55% 52%)"},children:"قصص نجاحنا"}),c.jsx("p",{className:"font-english text-xs mt-3",style:{color:"hsl(210 20% 55%)"},children:"Past performance is not indicative of future results. Investment involves risk."})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-0 border border-border mb-10",children:q2.map((e,t)=>c.jsxs("div",{className:"p-8 border-r last:border-r-0 border-border",children:[c.jsx("div",{className:"font-english font-bold text-4xl mb-1",style:{color:"hsl(43 55% 52%)"},children:e.value}),c.jsx("div",{className:"font-english font-semibold text-sm mb-0.5",style:{color:"hsl(210 73% 14%)"},children:e.label}),c.jsx("div",{className:"font-english text-xs mb-3",style:{color:"hsl(210 20% 55%)"},children:e.labelSub}),c.jsx("div",{className:"text-xs font-medium px-2 py-1 rounded-sm inline-block",style:{background:"hsl(43 55% 52% / 0.1)",color:"hsl(43 55% 40%)"},children:e.note})]},t))}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 p-8 bg-slate-50",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"font-english font-semibold text-base mb-3",style:{color:"hsl(210 73% 14%)"},children:"A Track Record Built on Discipline"}),c.jsx("p",{className:"font-english text-sm leading-relaxed",style:{color:"hsl(210 20% 45%)",lineHeight:"1.85"},children:"Since 1998, Almanza has delivered consistent, long-term returns to its clients across diverse market environments — the 2008 global financial crisis, the COVID-19 pandemic, and the GCC regional downturns — by maintaining our disciplined, research-driven approach and strict Shari'a compliance framework."})]}),c.jsxs("div",{style:{direction:"rtl",textAlign:"right"},children:[c.jsx("h3",{className:"font-arabic font-semibold text-base mb-3",style:{color:"hsl(210 73% 14%)"},children:"سجل حافل بُني على الانضباط"}),c.jsx("p",{className:"font-arabic text-sm leading-relaxed",style:{color:"hsl(210 20% 50%)",lineHeight:"2.2"},children:"منذ عام 1998، قدمت المنزا عوائد ثابتة وطويلة الأمد لعملائها عبر بيئات سوقية متنوعة، بالاعتماد على نهجنا البحثي المنضبط والامتثال الصارم لأحكام الشريعة الإسلامية."})]})]})]})}),yf=[{label:"Best Asset Manager – Kuwait 2025",body:"GCC Finance Awards"},{label:"Best Islamic Finance House – GCC 2024",body:"Islamic Finance News"},{label:"CMA Excellence in Governance 2023",body:"Capital Markets Authority"}],J2=()=>c.jsx("section",{className:"py-16",style:{background:"hsl(215 28% 97%)"},children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("h2",{className:"font-english font-bold text-2xl lg:text-3xl mb-1",style:{color:"hsl(210 73% 14%)"},children:"Regulatory Compliance & Awards"}),c.jsx("span",{className:"font-arabic text-lg",style:{color:"hsl(43 55% 52%)"},children:"الامتثال التنظيمي والجوائز"})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[c.jsxs("div",{className:"bg-white p-8",style:{borderTop:"3px solid hsl(43 55% 52%)"},children:[c.jsx("h3",{className:"font-english font-semibold text-sm mb-4 uppercase tracking-wider",style:{color:"hsl(210 73% 14%)"},children:"Regulatory Framework"}),c.jsxs("p",{className:"font-english text-sm leading-relaxed mb-6",style:{color:"hsl(210 20% 45%)",lineHeight:"1.85"},children:["Al Amal's asset management activities operate under the supervision of the ",c.jsx("strong",{children:"Capital Markets Authority (CMA) of Kuwait"})," (License No. XXX) pursuant to CMA Law No. 7/2010, and the ",c.jsx("strong",{children:"Central Bank of Kuwait (CBK)"})," where applicable. We adhere to the Kuwait Ministry of Commerce and Industry corporate governance code. Our Shari'a Supervisory Board reviews all investment activities annually."]}),c.jsx("div",{className:"flex flex-wrap gap-2",children:["CMA License No. XXX","CBK Regulated","Ministry of Commerce","Shari'a Certified","CMA Law No. 7/2010"].map(e=>c.jsx("span",{className:"reg-badge",children:e},e))})]}),c.jsxs("div",{className:"bg-white p-8",style:{borderTop:"3px solid hsl(210 73% 14%)"},children:[c.jsx("h3",{className:"font-english font-semibold text-sm mb-4 uppercase tracking-wider",style:{color:"hsl(210 73% 14%)"},children:"Industry Recognition"}),c.jsx("div",{className:"space-y-4 mb-6",children:yf.map((e,t)=>c.jsxs("div",{className:"flex items-start gap-3 pb-4 border-b border-border last:border-b-0 last:pb-0",children:[c.jsx(Sm,{size:16,className:"mt-0.5 flex-shrink-0",style:{color:"hsl(43 55% 52%)"}}),c.jsxs("div",{children:[c.jsx("div",{className:"font-english font-semibold text-sm",style:{color:"hsl(210 73% 14%)"},children:e.label}),c.jsx("div",{className:"font-english text-xs mt-0.5",style:{color:"hsl(210 20% 55%)"},children:e.body})]})]},t))}),c.jsx("div",{className:"flex flex-wrap gap-2",children:yf.map(e=>c.jsx("span",{className:"award-badge",children:e.label.split("–")[0].trim()},e.label))})]})]})]})}),eC=[{title:"Asset Management Brochure (English)",lang:"EN",size:"PDF 2.1 MB",icon:zd},{title:"كتيب إدارة الأصول (العربية)",lang:"AR",size:"PDF 2.3 MB",icon:zd},{title:"Sample Quarterly Performance Report",lang:"EN",size:"PDF 0.8 MB",icon:Ju}],tC=()=>c.jsx("section",{className:"py-16 bg-white",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("h2",{className:"font-english font-bold text-2xl lg:text-3xl mb-1",style:{color:"hsl(210 73% 14%)"},children:"Downloadable Resources"}),c.jsx("span",{className:"font-arabic text-lg",style:{color:"hsl(43 55% 52%)"},children:"الموارد القابلة للتنزيل"})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:eC.map((e,t)=>{const n=e.icon;return c.jsxs("div",{className:"group p-6 border border-border hover:border-amber-400 transition-colors duration-200 flex items-start gap-4 cursor-pointer",children:[c.jsx("div",{className:"w-10 h-10 flex-shrink-0 flex items-center justify-center rounded-sm",style:{background:"hsl(215 28% 97%)"},children:c.jsx(n,{size:18,style:{color:"hsl(43 55% 52%)"}})}),c.jsxs("div",{className:"flex-1",children:[c.jsx("p",{className:`text-sm font-semibold mb-1 group-hover:text-amber-700 transition-colors ${e.lang==="AR"?"font-arabic":"font-english"}`,style:{color:"hsl(210 73% 14%)"},children:e.title}),c.jsx("p",{className:"font-english text-xs",style:{color:"hsl(210 20% 55%)"},children:e.size})]}),c.jsx(Em,{size:16,className:"flex-shrink-0 mt-1 opacity-0 group-hover:opacity-100 transition-opacity",style:{color:"hsl(43 55% 52%)"}})]},t)})})]})}),nC=[{icon:Cm,title:"Annual Report",titleAr:"التقرير السنوي",desc:"Full performance and governance report for the financial year 2025.",cta:"View Annual Report",href:"/annual-report"},{icon:Ju,title:"Investor Relations",titleAr:"علاقات المستثمرين",desc:"Financial statements, CMA regulatory disclosures, and shareholder information.",cta:"Visit IR",href:"/investor-relations"},{icon:bm,title:"Subsidiary Companies",titleAr:"الشركات التابعة",desc:"Almanza Real Estate, Almanza Ventures, and Almanza Industrial — our operational subsidiaries.",cta:"View Subsidiaries",href:"/subsidiaries"}],rC=()=>c.jsx("section",{className:"py-16",style:{background:"hsl(215 28% 97%)"},children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("h2",{className:"font-english font-bold text-2xl lg:text-3xl mb-1",style:{color:"hsl(210 73% 14%)"},children:"Related Content"}),c.jsx("span",{className:"font-arabic text-lg",style:{color:"hsl(43 55% 52%)"},children:"محتوى ذو صلة"})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:nC.map((e,t)=>{const n=e.icon;return c.jsxs("div",{className:"bg-white p-8 flex flex-col",style:{borderTop:"2px solid hsl(43 55% 52%)"},children:[c.jsx(n,{size:24,className:"mb-4",style:{color:"hsl(43 55% 52%)"}}),c.jsx("h3",{className:"font-english font-semibold text-base mb-0.5",style:{color:"hsl(210 73% 14%)"},children:e.title}),c.jsx("p",{className:"font-arabic text-sm mb-3",style:{color:"hsl(43 55% 52%)"},children:e.titleAr}),c.jsx("p",{className:"font-english text-sm leading-relaxed mb-6 flex-1",style:{color:"hsl(210 20% 50%)",lineHeight:"1.75"},children:e.desc}),c.jsxs("a",{href:e.href,className:"flex items-center gap-1.5 font-english text-sm font-semibold transition-colors hover:opacity-80",style:{color:"hsl(205 69% 37%)"},children:[e.cta," ",c.jsx(hx,{size:12})]})]},t)})})]})}),oC=()=>c.jsx("section",{className:"py-20",style:{background:"hsl(210 73% 14%)"},children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6 text-center",children:[c.jsx("div",{className:"w-12 h-0.5 mx-auto mb-8",style:{background:"hsl(43 55% 52%)"}}),c.jsx("h2",{className:"font-english font-bold text-3xl lg:text-4xl text-white mb-2",children:"Become a Partner"}),c.jsx("p",{className:"font-arabic text-xl mb-6",style:{color:"hsl(43 55% 52%)"},children:"كن شريكاً معنا"}),c.jsx("p",{className:"font-english text-base max-w-2xl mx-auto mb-8 leading-relaxed",style:{color:"hsl(215 20% 70%)",lineHeight:"1.8"},children:"Almanza invests in a diversified portfolio of GCC stocks, sukuk, and principal investments as well as GCC-focused and GCC-domicile funds. Speak with our asset management team to explore how we can help you achieve your long-term investment objectives."}),c.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[c.jsxs("a",{href:"/contact/schedule-consultation",className:"btn-gold",children:["Schedule a Consultation",c.jsx(wm,{size:14})]}),c.jsxs("a",{href:"/services/asset-management#resources",className:"btn-ghost-gold",children:["Download Brochure",c.jsx(Em,{size:14})]})]}),c.jsx("p",{className:"font-english text-xs mt-8 max-w-xl mx-auto",style:{color:"hsl(215 20% 45%)"},children:"This page is for informational purposes only and does not constitute an offer or solicitation to buy or sell any security. Almanza Investment Company KSCC is licensed by the CMA of Kuwait."})]})}),xf=()=>(console.log("[AssetManagement] Page rendered"),c.jsxs("div",{className:"min-h-screen flex flex-col font-english",children:[c.jsx(L2,{}),c.jsxs("main",{className:"flex-1",children:[c.jsx(F2,{}),c.jsx($2,{}),c.jsx(U2,{}),c.jsx(H2,{}),c.jsx(W2,{}),c.jsx(Q2,{}),c.jsx(G2,{}),c.jsx(X2,{}),c.jsx(Z2,{}),c.jsx(J2,{}),c.jsx("div",{id:"resources",children:c.jsx(tC,{})}),c.jsx(rC,{}),c.jsx(oC,{})]}),c.jsx(z2,{})]})),sC=()=>{const e=jg();return S.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),c.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},iC=new WS,lC=()=>c.jsx(KS,{client:iC,children:c.jsxs(mS,{children:[c.jsx(Zx,{}),c.jsx(Rw,{}),c.jsx(_2,{children:c.jsxs(A2,{children:[c.jsx(ei,{path:"/",element:c.jsx(xf,{})}),c.jsx(ei,{path:"/services/asset-management",element:c.jsx(xf,{})}),c.jsx(ei,{path:"*",element:c.jsx(sC,{})})]})})]})});Hh(document.getElementById("root")).render(c.jsx(lC,{}));